about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-08-15 15:37:37 -0400
committerJune McEnroe <june@causal.agency>2020-08-15 15:37:37 -0400
commite25813c0b2e28d3216c03ab99bb13ec1cc5d8535 (patch)
tree6eb1b45104355ce71b2eb175d5e3636b08413dd9
parentImplement service status (diff)
downloadcatsit-e25813c0b2e28d3216c03ab99bb13ec1cc5d8535.tar.gz
catsit-e25813c0b2e28d3216c03ab99bb13ec1cc5d8535.zip
Remove closelog call
It's unclear whether closelog is really safe to call in pre-exec
context, so just trust that the log is opened with CLOEXEC.
-rw-r--r--service.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/service.c b/service.c
index 45a05d2..d8998af 100644
--- a/service.c
+++ b/service.c
@@ -177,7 +177,6 @@ void serviceStart(struct Service *service) {
 		return;
 	}
 
-	closelog();
 	dup2(service->outPipe[1], STDOUT_FILENO);
 	dup2(service->errPipe[1], STDERR_FILENO);