summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJirka Hladky <jhladky@redhat.com>2021-11-03 14:38:11 +0100
committerJirka Hladky <jhladky@redhat.com>2021-11-03 14:38:11 +0100
commita4b69d65a8dfc5a9f52ff8505c7f58dcf8b9234f (patch)
treef0b3276efa21158dd5e0482a9cf6ca8b5d8a9def /src
parentAllow newuname syscall. See https://github.com/jirka-h/haveged/issues/63 for ... (diff)
downloadhaveged-a4b69d65a8dfc5a9f52ff8505c7f58dcf8b9234f.tar.xz
haveged-a4b69d65a8dfc5a9f52ff8505c7f58dcf8b9234f.zip
Fix: haveged cannot be run as an application if also running as a daemon
Diffstat (limited to 'src')
-rw-r--r--src/haveged.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/haveged.c b/src/haveged.c
index 059bb28..59e62f5 100644
--- a/src/haveged.c
+++ b/src/haveged.c
@@ -435,7 +435,7 @@ int main(int argc, char **argv)
close(socket_fd);
return ret;
}
- else {
+ else if (!(params->setup & RUN_AS_APP)){
socket_fd = cmd_listen(params);
if (socket_fd >= 0)
fprintf(stderr, "%s: command socket is listening at fd %d\n", params->daemon, socket_fd);