diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-03-13 06:31:32 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-03-13 06:33:23 -0400 |
commit | bdeff9288fb2dd281a488052222b857a23546e8f (patch) | |
tree | e46bc990d17479ce6d51b87ccc2990470816f22b /gpsd.c | |
parent | 027002aff19ea428640d6e8489f4e992d95fc13b (diff) | |
download | gpsd-bdeff9288fb2dd281a488052222b857a23546e8f.tar.gz |
If command sockets weren't opend, a stale pidfile could linger.
All regression tests pass.
Diffstat (limited to 'gpsd.c')
-rw-r--r-- | gpsd.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1991,6 +1991,7 @@ int main(int argc, char *argv[]) gpsd_log(&context.errout, LOG_ERR, "command sockets creation failed, netlib errors %d, %d\n", msocks[0], msocks[1]); + (void)unlink(pid_file); exit(EXIT_FAILURE); } gpsd_log(&context.errout, LOG_INF, "listening on port %s\n", gpsd_service); |