diff options
author | Craig Small <csmall@users.sourceforge.net> | 2012-06-16 18:09:24 +1000 |
---|---|---|
committer | Craig Small <csmall@users.sourceforge.net> | 2012-06-16 18:09:24 +1000 |
commit | b2852b285f4011f6190e18cb88df1b91353a28ae (patch) | |
tree | 98ae19538b6f2c703352647118709fb792eaa2f7 /src | |
parent | 8d8cdd70867626fa33640ca5048e80210bf03ab6 (diff) |
killall assert lifetime
Sometimes killall younger-than or older-than would trigger an assert
failure because the process age was too small and was close to zero.
Bug reported and analysed by Frédéric Brière <fbriere@fbriere.net>
Bug-Debian: http://bugs.debian.org/628617
Diffstat (limited to 'src')
-rw-r--r-- | src/killall.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/killall.c b/src/killall.c index da26237..c08d142 100644 --- a/src/killall.c +++ b/src/killall.c @@ -383,7 +383,7 @@ kill_all (int signal, int names, char **namelist, struct passwd *pwent) continue; } process_age_sec = process_age(proc_stt_jf); - assert(process_age_sec > 0); + assert(process_age_sec >= 0L); } (void) fclose (file); |