1. 02 10月, 2006 1 次提交
    • C
      [PATCH] replace cad_pid by a struct pid · 9ec52099
      Cedric Le Goater 提交于
      There are a few places in the kernel where the init task is signaled.  The
      ctrl+alt+del sequence is one them.  It kills a task, usually init, using a
      cached pid (cad_pid).
      
      This patch replaces the pid_t by a struct pid to avoid pid wrap around
      problem.  The struct pid is initialized at boot time in init() and can be
      modified through systctl with
      
      	/proc/sys/kernel/cad_pid
      
      [ I haven't found any distro using it ? ]
      
      It also introduces a small helper routine kill_cad_pid() which is used
      where it seemed ok to use cad_pid instead of pid 1.
      
      [akpm@osdl.org: cleanups, build fix]
      Signed-off-by: NCedric Le Goater <clg@fr.ibm.com>
      Cc: Eric W. Biederman <ebiederm@xmission.com>
      Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
      Cc: Paul Mackerras <paulus@samba.org>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      9ec52099
  2. 11 7月, 2006 1 次提交
    • C
      [PATCH] snsc: switch from force_sig to kill_proc · 5c318bef
      Christoph Hellwig 提交于
      Currently the snsc driver uses force_sig to send init a SIGPWR when the
      system overheats.  This patch switches it to kill_proc instead which has
      the following advantages:
      
       (1) gets rid of one of the last remaining tasklist_lock users
           in modular code
       (2) simplifies the snsc code significantly
      
      The downside is that an init implementation could in theory block SIGPWR
      and it would not get delivered.  The sysvinit code used by all major
      distributions doesn't do this and blocking this signal in init would be a
      rather stupid thing to do.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      5c318bef
  3. 03 7月, 2006 1 次提交
  4. 23 3月, 2006 1 次提交
  5. 27 1月, 2006 1 次提交
  6. 16 8月, 2005 1 次提交
  7. 26 4月, 2005 1 次提交