summaryrefslogtreecommitdiffstats
path: root/src/status.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-09-15 17:19:15 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-09-15 17:19:15 +0200
commit00e313d7e9fc487b445b05324148a8931941b8f0 (patch)
treef82ffe4d63e5b018bc44b93d9c541d615f4f1a7e /src/status.c
parentcfc893eae959230c63cada9855914a9091acd9f4 (diff)
downloadfastd-00e313d7e9fc487b445b05324148a8931941b8f0.tar
fastd-00e313d7e9fc487b445b05324148a8931941b8f0.zip
Don't try to poll on invalid status socket FD
Diffstat (limited to 'src/status.c')
-rw-r--r--src/status.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/status.c b/src/status.c
index fd34747..8e0c427 100644
--- a/src/status.c
+++ b/src/status.c
@@ -195,8 +195,10 @@ static void dump_status(int fd) {
/** Initialized the status socket */
void fastd_status_init(void) {
- if (!conf.status_socket)
+ if (!conf.status_socket) {
+ ctx.status_fd = -1;
return;
+ }
uid_t uid = geteuid();
gid_t gid = getegid();