lkml.org 
[lkml]   [2001]   [Aug]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectSAK killing daemons
I noticed that when I press SAK on virtual console #1
on my Linux box, some daemons die horribly (SIGKILLed)
and some are unaffected. This does not happen on other consoles.

I suppose dying daemons did not detach fully from controlling tty. And
since they were launched from virtual console #1 upon system startup,
SAK killed them.

Daemons dying upon SAK: syslogd mysqld top* logger*
Daemons surviving SAK: klogd gpm dhcpcd inetd automount

* these are not daemons, but I intend them to run continuously.
logger directs mysqld output to syslog, and I keep top on console #10:
su user0 -c "top s </dev/tty10 >/dev/tty10 &"

Also I see '?' in TTY column in 'ps -AH e' output for all these
daemons (both dying and surviving), so ps does not provide any hint...

Does anybody knows a way to write a helper script to detach
misbehaving daemons (or any normal process like top) from tty on startup?
BTW, do syslogd needs fixing to be immune to SAK like klogd?

Please CC me. I'm not on the list.
--
Best regards,
VDA mailto:VDA@port.imtp.ilyichevsk.odessa.ua


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:57    [W:0.121 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site