This repository has been archived on 2023-11-05. You can view files and clone it, but cannot push or open issues or pull requests.
signal-wrangler/example
Tom 63535dc16c test: do not accidentally kill parent process
Use `kill(getpid(), ...)` instead of `kill(0, ...)`.
`kill(0, ...)` sends a signal to the whole process group, not just the
currently executing process. The process group may include a parent
process, for example a bash subshell spawned for a script.
2020-08-01 02:05:43 +02:00
..
example.cpp test: do not accidentally kill parent process 2020-08-01 02:05:43 +02:00