diff options
| author | Sam Varshavchik | 2022-05-22 23:52:28 -0400 |
|---|---|---|
| committer | Sam Varshavchik | 2022-05-22 23:52:31 -0400 |
| commit | 83e37efc8ed785cd095eb585ff747e5702ec49b3 (patch) | |
| tree | 15aed6da6214e9a03d91be1754cd351175349945 /liblock/lockdaemon.c | |
| parent | 1ce81fa6af52651628a0bffcd8b15fdb459901a5 (diff) | |
| download | courier-libs-83e37efc8ed785cd095eb585ff747e5702ec49b3.tar.bz2 | |
gcc 12, autotool updates, sqwebmail fixes.
Diffstat (limited to 'liblock/lockdaemon.c')
| -rw-r--r-- | liblock/lockdaemon.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/liblock/lockdaemon.c b/liblock/lockdaemon.c index af0027b..1ca9133 100644 --- a/liblock/lockdaemon.c +++ b/liblock/lockdaemon.c @@ -218,7 +218,7 @@ char buf[NUMBUFSIZE+1]; char *p=strcat(libmail_str_pid_t(getpid(), buf), "\n"); FILE *fp; - unlink(pidfile); + unlink(pidfile); if ((fp=fopen(pidfile, "w")) == NULL || fprintf(fp, "%s", p) < 0 || fflush(fp) < 0 || fclose(fp)) { @@ -268,12 +268,9 @@ int waitstat; ** process kills itself. */ -static RETSIGTYPE sigexit(int signum) +static void sigexit(int signum) { kill(getpid(), SIGKILL); -#if RETSIGTYPE != void - return (0); -#endif } static void stop1(const char *lockfile, const char *pidfile) @@ -371,4 +368,3 @@ int c; kill(p, SIGHUP); return (0); } - |
