Commit Graph

6 Commits

Author SHA1 Message Date
Tom
91534ec8be example: add missing include <thread> 2021-05-18 02:38:13 +02:00
Tom
85d3f93f51 example: move free function to anonymous namespace 2020-08-01 14:19:03 +02:00
Tom
467648269c example: add missing includes 2020-08-01 14:18:12 +02:00
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
Tom
562a037c39 example: prefer helper methods 2020-07-18 00:20:54 +02:00
Tom
f33e820a16 add example using threads 2019-10-13 15:06:50 +02:00