lkml.org 
[lkml]   [1997]   [Jul]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: What to do on ctrl-alt-del?

>Of _course_ there is a process with PID 1. It's just a simple shell script
>(or whatever) though, not a full-blown init.

My linuxrc has PID 8, not 1. A 'ps -ax' looks like this:

1 ... (swapper)
2 ... (kflushd)
3 ... (kswapd)
4-7 ... (nfsiod)
8 ... /bin/sh note: last line in linuxrc is 'exec /bin/sh'
1x ... ps -ax

So even if you tell the kernel he should send a signal to process 1, you
can't catch this signal...

Gerd


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