in reply to wierd wierd behavior with SIGTERM and classes
On UNIX systems, signals are subject to rules defined by process groups, process group leaders, and controlling terminals. There are a number of write-ups on this you should read up on.
SIGTERM is a signal that gets propogated to a process group. The common example is if your shell goes away, then any processes it started also die. A process can disassociate itself from its parent process group and become a true daemon by making certain system calls. These are often UNIX-specific. At my first job (C programming) we wrote a daemonize function that hid these details. That code was lifted almost directly out of the book UNIX Network Progamming by Richard Stevens.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: wierd wierd behavior with SIGTERM and classes
by shrubbery (Acolyte) on Feb 28, 2002 at 22:01 UTC |