#: 6451 S12/OS9/68000 (OSK)
01-Sep-90 11:17:50
Sb: wait()
Fm: Mark Wuest 74030,332
To: all
I uploaded into library # 12 (OSK) my function timedwait() that I use when I
wish to wait() for a process (keeps them zomby-like thingies down), but don't
want to stop processing just because my kid refuses to die!
I use this in an X.25 system where I fork a server on incoming call requests
and send a SIGHUP (#define SIGHUP 4) if the virtual circuit is cleared. If I
did not wait(), the process table would get rather humongous since I never die
(immortality is nice).
I would like to understand this bit about "keeping a path open" to children,
as it sounds a lot more elegant than what I'm doing. Could somebody please
'splain it to us, mon?
Mark
|