Bug 56204

Summary: systemd: exit user session broken
Product: systemd Reporter: Oleksii Shevchuk <public.avatar>
Component: generalAssignee: systemd-bugs
Status: RESOLVED FIXED QA Contact: systemd-bugs
Severity: blocker    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Oleksii Shevchuk 2012-10-19 20:55:01 UTC
As for 20f59e42cd64c0c7fd9386b0ca93842c6cdbc387 systemctl --user exit broken:

ExecStart={ path=/bin/kill ; argv[]=/bin/kill -s KILL $MANAGERPID ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }


> strace -e kill -f /bin/kill -s RTMAX-6  $(pidof systemd) 
kill(2750, -1)                          = -1 EINVAL (Invalid argument)
kill(1, -1)                             = -1 EINVAL (Invalid argument)
+++ exited with 1 +++
Comment 1 Oleksii Shevchuk 2012-10-19 21:28:16 UTC
Looks like system exit broken tor
Comment 2 Lennart Poettering 2012-10-21 17:58:26 UTC
Hmm, I think only recent util-linux has a kill tool that can handle RTSIG as signal correctly.

We could specify the numeric signal number instead of the symbolic name on the command line which would work in all cases.
Comment 3 Oleksii Shevchuk 2012-10-21 18:32:54 UTC
Numeric argument should be ok, but units must be generated in that case. There is tiny possibility, that RTMAX-6 code representation will be different for different versions of headers.
Comment 4 Oleksii Shevchuk 2012-10-21 18:38:02 UTC
(In reply to comment #2)
> Hmm, I think only recent util-linux has a kill tool that can handle RTSIG as
> signal correctly.
> 
> We could specify the numeric signal number instead of the symbolic name on
> the command line which would work in all cases.

Oh.. 

> equery b /bin/kill 
 * Searching for /bin/kill ... 
sys-process/procps-3.3.3 (/bin/kill)


Looks like numeric args to kill is the One Right Way :)
Comment 5 Lennart Poettering 2012-10-30 22:17:53 UTC
Fixed in 195.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.