Fix kill issue leading to zombie process on MacOS Sierra
authorXavier Roirand <roirand@adacore.com>
Thu, 8 Jun 2017 16:10:18 +0000 (18:10 +0200)
committerTom Tromey <tom@tromey.com>
Thu, 2 Aug 2018 21:08:45 +0000 (15:08 -0600)
commit1584354913285389063622a39f845851f332eb9a
treeefd9d7932bb5174244b59e0df9960b0b6edf3dd6
parentb5bddbbbbcece5d52115bd3e1299cec2a3b362f0
Fix kill issue leading to zombie process on MacOS Sierra

Starting with MacOS version Sierra, the gdb kill command
seems to work but inferior remains as zombie on the host.
Notice that, as zombie process, the inferior is not killable
by the user, nor by root.

The kill signal gdb sent to the inferior is not handled
in gdb as a signal sent by gdb thus no reply is made and
the process remains (since MacOS does not "release" the
inferior because no reply have been made to the signal
message).

This patch fixes this problem.

gdb/ChangeLog
2018-08-02  Xavier Roirand  <roirand@adacore.com>

PR gdb/22629:
        * darwin-nat.c (darwin_kill_inferior): Fix handling of
        kill inferior.
gdb/ChangeLog
gdb/darwin-nat.c
This page took 0.024811 seconds and 4 git commands to generate.