=== modified file 'plugins.d/usplash.c' --- plugins.d/usplash.c 2009-09-16 23:28:39 +0000 +++ plugins.d/usplash.c 2009-09-17 04:16:32 +0000 @@ -612,11 +612,13 @@ } /* Close FIFO (again) */ - ret = (int)TEMP_FAILURE_RETRY(close(fifo_fd)); - if(ret == -1 and errno != EINTR){ - perror("close"); + if(fifo_fd != -1){ + ret = (int)TEMP_FAILURE_RETRY(close(fifo_fd)); + if(ret == -1 and errno != EINTR){ + perror("close"); + } + fifo_fd = -1; } - fifo_fd = -1; if(interrupted_by_signal){ struct sigaction signal_action = { .sa_handler = SIG_DFL };