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

 
 

task #3731: kill -1 should exclude system services

Submitted by:  Marcus Brinkmann <marcus>
Submitted on:  Wed 09 Feb 2005 07:21:36 PM UTC  
 
Category: The GNU HurdShould Start On: Wed 09 Feb 2005 12:00:00 AM UTC
Should be Finished on: Wed 09 Feb 2005 12:00:00 AM UTCPriority: 5 - Normal
Status: NonePrivacy: Public
Percent Complete: 0%Assigned to: None
Open/Closed: OpenPlanned Release: None
Effort: 0.00
Wiki-like text discussion box: 

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project Administrator

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

No Changes Have Been Made to This Item

Back to the top


Powered by Savane 3.1-cleanup