Re: why bash not send SIGHUP to its child when it exits
- From: Michal Nazarewicz <mina86@xxxxxxx>
- Date: Sun, 24 Sep 2006 00:02:03 +0200
"Binary" <binary.chen@xxxxxxxxx> writes:
I wrote a small program that can capture the signal SIGHUP and print it
to syslog, I can receive the signal by type command : kill -SIGHUP pid
I run program in bash(pts/0):
./test &
then bash becomes the parent of this test program, then I type exit in
bash, it exits.
then the test become to be the child of init(pid 1)
but the test doesn't any SIGHUP signal, why?
I know if I use telnet tty, the program will receive this signal.
http://www.faqs.org/faqs/unix-faq/programmer/faq/
--
Best regards, _ _
.o. | Liege of Serenly Enlightened Majesty of o' \,=./ `o
..o | Computer Science, Michal "mina86" Nazarewicz (o o)
ooo +--<mina86*tlen.pl>--<jid:mina86*jabber.org>--ooO--(_)--Ooo--
.
- References:
- why bash not send SIGHUP to its child when it exits
- From: Binary
- why bash not send SIGHUP to its child when it exits
- Prev by Date: Re: mp3 playing library for C++
- Next by Date: Re: scope of linux in the corporates...
- Previous by thread: why bash not send SIGHUP to its child when it exits
- Next by thread: mp3 playing library for C++
- Index(es):
Relevant Pages
|