[Wayland-bugs] [Bug 62910] [bug] weston-launch leaves behind defunct procs when killed, hanging ttys

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Mar 29 09:59:08 PDT 2013


https://bugs.freedesktop.org/show_bug.cgi?id=62910

--- Comment #1 from Kristian Høgsberg <krh at bitplanet.net> ---
Right now weston-launch and weston cooperate to shut down cleanly.  Weston
catches SIGSEGV and SIGABRT and cleans up as best as it can with help from
weston-launch.  So killing weston is fine and should work, though SIGKILL can't
be caught and doesn't let weston shut down nicely, so that will lock up the
system.  Killing weston-launch isn't something we've tried to make work well
and it will leave weston hanging trying to read from the socket to
weston-launch while having the system stuck with keyboard disabled.

So in short, don't kill weston-launch, kill weston.  weston-launch now returns
exit codes to reflect how weston exited: 0 means all is well, 10+signal means
weston dies from signal and 128+signal means that weston-launch itself took a
signal.

In the future, I think we'll  move some of the "dangerous stuff" out of weston
and into weston-launcher.  Things like vt switch and disabling kb and switching
the console into graphics mode may be better done in launcher so that no matter
how weston dies, weston-launch can always clean it up.  When we do that, we'll
also teach weston-launch to clean up properly when it itself crashes.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-bugs/attachments/20130329/0dabcbc7/attachment-0001.html>


More information about the Wayland-bugs mailing list