Bug 23977

Summary: dbus-launch --exit-with-session not killing dbus-daemon on SIGINT
Product: dbus Reporter: Sascha Silbe <sascha-web-bugs.freedesktop.org>
Component: coreAssignee: Havoc Pennington <hp>
Status: RESOLVED FIXED QA Contact: John (J5) Palmieri <johnp>
Severity: normal    
Priority: medium CC: joshua, walters
Version: 1.2.xKeywords: patch
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: dbus-launch: handle SIGINT the same as SIGTERM

Description Sascha Silbe 2009-09-16 10:10:55 UTC
Created attachment 29600 [details] [review]
dbus-launch: handle SIGINT the same as SIGTERM

If dbus-launch --exit-with-session encounters SIGINT (e.g. because the parent process was aborted with Ctrl-C), it exits without killing dbus-daemon:

Process 3301 attached - interrupt to quit
select(6, [0 5], NULL, [0 5], NULL)     = ? ERESTARTNOHAND (To be restarted)
--- SIGINT (Interrupt) @ 0 (0) ---
Process 3301 detached
Comment 1 Colin Walters 2009-10-16 13:02:35 UTC
commit 9b2c196ef36260ef455f0746f003aec6ffe6ff4c
Author: Sascha Silbe <sascha-web-bugs.freedesktop.org@silbe.org>
Date:   Fri Oct 16 15:20:43 2009 -0400

    Bug 23977 - dbus-launch --exit-with-session not killing dbus-daemon on SIGINT
    
    Handle SIGINT in the same way we handle SIGTERM.
Comment 2 Simon McVittie 2011-02-28 09:21:08 UTC
*** Bug 10022 has been marked as a duplicate of this bug. ***

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.