|
@ -1,4 +1,4 @@ |
|
|
/* $OpenBSD: pidfile.c,v 1.13 2019/06/28 05:33:35 deraadt Exp $ */ |
|
|
|
|
|
|
|
|
/* $OpenBSD: pidfile.c,v 1.14 2019/06/28 14:20:40 schwarze Exp $ */ |
|
|
/* $NetBSD: pidfile.c,v 1.4 2001/02/19 22:43:42 cgd Exp $ */ |
|
|
/* $NetBSD: pidfile.c,v 1.4 2001/02/19 22:43:42 cgd Exp $ */ |
|
|
|
|
|
|
|
|
/*- |
|
|
/*- |
|
@ -83,7 +83,7 @@ pidfile(const char *basename) |
|
|
(void) fclose(f); |
|
|
(void) fclose(f); |
|
|
|
|
|
|
|
|
pidfile_pid = pid; |
|
|
pidfile_pid = pid; |
|
|
if (atexit(pidfile_cleanup) == -1) { |
|
|
|
|
|
|
|
|
if (atexit(pidfile_cleanup) != 0) { |
|
|
save_errno = errno; |
|
|
save_errno = errno; |
|
|
(void) unlink(pidfile_path); |
|
|
(void) unlink(pidfile_path); |
|
|
free(pidfile_path); |
|
|
free(pidfile_path); |
|
|