This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Make Cygwin damons easier to use on Win9x.


>>> On Tue, 26 Jun 2001 10:49:09 -0400
>>> Christopher Faylor <cgf@redhat.com> 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 <fujieda@jaist.ac.jp>
  | HOKURIKU  School of Information Science
o_/ 1990      Japan Advanced Institute of Science and Technology


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]