Delivered-To: listarch-cygwin AT sourceware DOT cygnus DOT com Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-Id: <199902131726.JAA18555@proxyb1-atm.san.rr.com> Reply-To: From: "Steve Biskis" To: Subject: daemonizing don't work (corrected) Date: Sat, 13 Feb 1999 09:26:07 -0800 X-MSMail-Priority: Normal X-Priority: 3 X-Mailer: Microsoft Internet Mail 4.70.1161 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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. Is ioctl->TIOCNOTTY supported ? Steve B.