diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-12-16 23:53:23 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-12-18 00:52:41 -0500 |
commit | ee05e7795bb9ad7d1212dd49ad362f3e9603c4fd (patch) | |
tree | 54b417af3285979aef08af98d50e81b851c9b256 /src/kernel-install | |
parent | 503dbda6d94c16161762b7b489677a377f235590 (diff) |
core: use raw_clone instead of fork in signal handler
fork() is not async-signal-safe and calling it from the signal handler
could result in a deadlock when at_fork() handlers are called. Using
the raw clone() syscall sidesteps that problem.
The tricky part is that raise() does not work, since getpid() does not
work. Add raw_getpid() to get the real pid, and use kill() instead of
raise().
https://bugs.freedesktop.org/show_bug.cgi?id=86604
Diffstat (limited to 'src/kernel-install')
0 files changed, 0 insertions, 0 deletions