diff options
author | Rob Landley <rob@landley.net> | 2012-10-07 19:31:12 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2012-10-07 19:31:12 -0500 |
commit | b77293f660128aa39cf476d03f3f0e4770c355ad (patch) | |
tree | 7be2c3e8ad65a343431ebd2894cfc6000fd45d7c /lib | |
parent | 4cd9dffe67eac471fd3742084c203878a1485e0e (diff) | |
download | toybox-b77293f660128aa39cf476d03f3f0e4770c355ad.tar.gz |
Fix thinko in xpidfile()
Diffstat (limited to 'lib')
-rw-r--r-- | lib/lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -672,7 +672,7 @@ void xpidfile(char *name) 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. } |