--- apcupsd-3.10.5/src/apcupsd.c 2003-02-03 13:41:44 +0300 +++ apcupsd/src/apcupsd.c 2003-03-21 18:35:58 +0300 @@ -477,8 +471,8 @@ /* Should close open file descriptors here, but since we have a lot of them open including the serial port, we close only the standard descriptors */ -#ifndef DEBUG close(STDIN_FILENO); +#ifndef DEBUG close(STDOUT_FILENO); close(STDERR_FILENO); #endif