Changeset: 05d60f0249c5 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/05d60f0249c5
Modified Files:
tools/merovingian/daemon/argvcmds.c
Branch: Dec2023
Log Message:
Make failure to SIGHUP in 'monetdbd set' non-fatal
Maybe monetdbd crashed or got killed and did not get the chance to
clean up the pid file
diffs (16 lines):
diff --git a/tools/merovingian/daemon/argvcmds.c
b/tools/merovingian/daemon/argvcmds.c
--- a/tools/merovingian/daemon/argvcmds.c
+++ b/tools/merovingian/daemon/argvcmds.c
@@ -441,10 +441,9 @@ command_set(confkeyval *ckv, int argc, c
(meropid = atoi(buf)) != 0 &&
kill(meropid, SIGHUP) == -1)
{
- fprintf(stderr, "sending SIGHUP to monetdbd[%d] failed:
%s\n",
+ /* maybe monetdbd crashed and did not get the chance to
clean up */
+ fprintf(stderr, "WARNING: sending SIGHUP to
monetdbd[%d] failed: %s\n",
(int)meropid, strerror(errno));
- fclose(pfile);
- return(1);
}
fclose(pfile);
}
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]