annoying Linux API peculiarity: there is no clean, race-free way to kill a specific process because killing uses a PID, which can be reused
-
-
Replying to @tehjh
it would be nice if there were alternative APIs for this, e.g. in procfs
1 reply 0 retweets 0 likes -
Replying to @tehjh
Still be a race if you obtained it via /proc/PID though. APIs using pid_t should be added with pid fd with a new way to spawn returning one.
4 replies 0 retweets 1 like
Replying to @CopperheadOS
you could obtain an fd to /proc/pid, inspect task properties through entries in /proc/pid, then decide whether to kill
5:42 PM - 27 May 2017
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.