]> granicus.if.org Git - psmisc/commit
killall - Fix race condition for --older-than and --younger-than
authorJohn Ferlito <johnf@inodes.org>
Sat, 1 Apr 2017 23:20:33 +0000 (09:20 +1000)
committerJohn Ferlito <johnf@inodes.org>
Sat, 1 Apr 2017 23:20:33 +0000 (09:20 +1000)
commitada030124b00e3fb91c72465bdec87e6cc7d502a
tree94abfb77732aec17704f3c6ab5135ab4d6dfcda9
parent2990be5c4706aa2507538545ce5614c64f11e6a1
killall - Fix race condition for --older-than and --younger-than

If killall runs really quickly then it' possible for process_age to be
0.0. The existing logic will then always kill the process due t
"&& process_age" always being false in that case.
src/killall.c