diff --git a/logwrapper.c b/logwrapper.c index b7d2f68..13c076d 100644 --- a/logwrapper.c +++ b/logwrapper.c @@ -155,7 +155,6 @@ int logwrap(int argc, const char* argv[], int background) if (write(fd, text, strlen(text)) < 0) { LOG(LOG_WARN, "logwrapper", "Unable to background process (%s)", strerror(errno)); - close(fd); } close(fd); } else {