daemonizing don't work (corrected)
Steve Biskis
mlx@san.rr.com
Sat Feb 13 09:26:00 GMT 1999
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.
More information about the Cygwin
mailing list