# HG changeset patch # User Rob Landley # Date 1349656272 18000 # Node ID e4b96507688a66494758397d4a8a1015b9bb40f2 # Parent e2ebaf211a0fc285e3cdf691bcd206d2c4ec7213 Fix thinko in xpidfile() diff -r e2ebaf211a0f -r e4b96507688a lib/lib.c --- a/lib/lib.c Sat Oct 06 19:07:34 2012 -0500 +++ b/lib/lib.c Sun Oct 07 19:31:12 2012 -0500 @@ -672,7 +672,7 @@ spid[xread(fd, spid, sizeof(spid)-1)] = 0; close(fd); pid = atoi(spid); - if (fd < 1 || kill(pid, 0) == ESRCH) unlink(pidfile); + if (pid < 1 || kill(pid, 0) == ESRCH) unlink(pidfile); // An else with more sanity checking might be nice here. }