coredumpctl: let gdb handle the SIGINT signal (#4901)
authorFranck Bui <fbui@suse.com>
Sat, 17 Dec 2016 14:49:17 +0000 (15:49 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 17 Dec 2016 14:49:17 +0000 (09:49 -0500)
commit3e7bc89b8fdd786ab0188f654c38ad8c199a52be
treee207a9779e8501573d0a3591c6c8e4ce055d5063
parentebc8968bc0b6fc460099041f5ae1262ca17eeb6e
coredumpctl: let gdb handle the SIGINT signal (#4901)

Even if pressing Ctrl-c after spawning gdb with "coredumpctl gdb" is not really
useful, we should let gdb handle the signal entirely otherwise the user can be
suprised to see a different behavior when gdb is started by coredumpctl vs when
it's started directly.

Indeed in the former case, gdb exits due to coredumpctl being killed by the
signal.

So this patch makes coredumpctl ignore SIGINT as long as gdb is running.
src/coredump/coredumpctl.c