www.delorie.com/archives/browse.cgi | search |
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: | <mlx AT san DOT rr DOT com> |
From: | "Steve Biskis" <mlx AT san DOT rr DOT com> |
To: | <cygwin AT sourceware DOT cygnus DOT com> |
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 |
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.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |