taskThe GNU Hurd - Tasks: task #3731, kill -1 should exclude system...

 
 

task #3731: kill -1 should exclude system services

Submitter:  Marcus Brinkmann <marcus>
Submitted:  Wed 09 Feb 2005 07:21:36 PM UTC
   
 
Category:  The GNU Hurd Should Start On:  Wed 09 Feb 2005 12:00:00 AM UTC
Should be Finished on:  Wed 09 Feb 2005 12:00:00 AM UTC Priority:  * 5 - Normal
Status:  Done Privacy:  Public
Assigned to:  None Percent Complete:  100%
Open/Closed:  Closed Planned Release:  None
Effort:  0.00
Wiki-like text discussion box: 


* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 09 Feb 2005 07:21:36 PM UTC, original submission:  

Currently, there is no way to gracefully reboot the system.  The usual thing to do to kill all user tasks gracefully is to kill (-1, SIGTERM), pause a bit, then kill (-1, SIGKILL). This is done for example in sysvinit.

The problem is that currently kill -1 will happily kill essential system processes.  init knows about those system services, but there is no way to retrieve the list.

POSIX says that kill 0 and kill -1 can exclude system processes (see below).  It is suggested that we find a way to list the system processes that should be excluded by kill 0 and kill -1 and implement exclusion in glibc's kill() implementation.

22154              If pid is 0, sig shall be sent to all processes (excluding an unspecified set of system processes)
22155              whose process group ID is equal to the process group ID of the sender, and for which the
22156              process has permission to send a signal.
22157              If pid is -1, sig shall be sent to all processes (excluding an unspecified set of system processes) for
22158              which the process has permission to send that signal.
22159              If pid is negative, but not -1, sig shall be sent to all processes (excluding an unspecified set of
22160              system processes) whose process group ID is equal to the absolute value of pid, and for which
22161              the process has permission to send a signal.


Marcus Brinkmann <marcus>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by teythoon (Updated the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-02-08 teythoon Open/ClosedOpen Closed
    2014-09-02 teythoon StatusNone Done
        Percent Complete0% 100%

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code