* daemonizing don't work (corrected)
@ 1999-02-13 9:26 Steve Biskis
1999-02-28 23:02 ` Steve Biskis
0 siblings, 1 reply; 2+ messages in thread
From: Steve Biskis @ 1999-02-13 9:26 UTC (permalink / raw)
To: cygwin
Sorry, I jumped the gun a bit ...
Closer inspection of my code yielded:
if ( (fd=open("/dev/tty",O_RDWR,0))>=0 )
{
#ifndef _WIN32
if ( ioctl(fd,TIOCNOTTY,NULL)==-1 )
{
printf("Can\'t detach /dev/tty - can\'t daemonize !");
return(errno)
}
#endif
close(fd);
}
So I must change my statement to:
Daemonizing has not exactly worked for me
under cygwin b<anything>.
Is ioctl->TIOCNOTTY supported ?
Steve B.
^ permalink raw reply [flat|nested] 2+ messages in thread
* daemonizing don't work (corrected)
1999-02-13 9:26 daemonizing don't work (corrected) Steve Biskis
@ 1999-02-28 23:02 ` Steve Biskis
0 siblings, 0 replies; 2+ messages in thread
From: Steve Biskis @ 1999-02-28 23:02 UTC (permalink / raw)
To: cygwin
Sorry, I jumped the gun a bit ...
Closer inspection of my code yielded:
if ( (fd=open("/dev/tty",O_RDWR,0))>=0 )
{
#ifndef _WIN32
if ( ioctl(fd,TIOCNOTTY,NULL)==-1 )
{
printf("Can\'t detach /dev/tty - can\'t daemonize !");
return(errno)
}
#endif
close(fd);
}
So I must change my statement to:
Daemonizing has not exactly worked for me
under cygwin b<anything>.
Is ioctl->TIOCNOTTY supported ?
Steve B.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-02-28 23:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-02-13 9:26 daemonizing don't work (corrected) Steve Biskis
1999-02-28 23:02 ` Steve Biskis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).