From 6b304267ca0d351bcf8607afd8858550fbd2855c Mon Sep 17 00:00:00 2001 From: Jirka Hladky Date: Sun, 13 Oct 2024 14:52:05 +0200 Subject: src/haveged.c - only warn when creating of named semaphore fails --- src/haveged.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/haveged.c b/src/haveged.c index b69ffda..c68e510 100644 --- a/src/haveged.c +++ b/src/haveged.c @@ -489,10 +489,11 @@ int main(int argc, char **argv) fprintf(stderr, "%s: disabling command mode for this instance\n", params->daemon); } } - /* Initilize named semaphore to synchronize command isntances */ + /* Initilize named semaphore to synchronize command instances */ sem = sem_open(SEM_NAME, O_CREAT, 0644, 1); if (sem == NULL) { - error_exit("Couldn't create nammed semaphore " SEM_NAME" error: %s", strerror(errno)); + fprintf(stderr, "Warning: Couldn't create named semaphore " SEM_NAME" error: %s", strerror(errno)); + fprintf(stderr, " %s: disabling command mode for this instance\n", params->daemon); } } #endif -- cgit v1.2.3