Make Cygwin damons easier to use on Win9x.

Kazuhiro Fujieda
Tue Jun 26 16:19:00 GMT 2001

>>> On Tue, 26 Jun 2001 10:49:09 -0400
>>> Christopher Faylor <> said:

> I don't think it is appropriate to detach the console after a call to
> setsid().  I have tested this on UNIX recently and I believe that a
> program can continue to write to a tty after calling setsid().

Yes, you are right. But almost all programs calling setsid() try to
become daemons, so close their tty before calling setsid() and don't
write them tty anymore.

Anyway, should I add some more code checking whether a program close
its tty before detaching the console? Or find out another timing 
detaching the console?
  | AIST      Kazuhiro Fujieda <>
  | HOKURIKU  School of Information Science
o_/ 1990      Japan Advanced Institute of Science and Technology

More information about the Cygwin-patches mailing list