summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJirka Hladky <jhladky@redhat.com>2024-10-13 14:52:05 +0200
committerJirka Hladky <jhladky@redhat.com>2024-10-13 14:52:05 +0200
commit6b304267ca0d351bcf8607afd8858550fbd2855c (patch)
treee7a68032fc0d0e1675369c14dcad885c1bff44c8
parentUpdated ChangeLog (diff)
downloadhaveged-6b304267ca0d351bcf8607afd8858550fbd2855c.tar.xz
haveged-6b304267ca0d351bcf8607afd8858550fbd2855c.zip
src/haveged.c - only warn when creating of named semaphore fails
-rw-r--r--src/haveged.c5
1 files 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