log: enhance close_log_file to reset logfile_fd to -1 after closing

Michael
This commit is contained in:
Michael Adam 2009-12-23 00:17:37 +01:00
parent f3c8424515
commit c4b9454807

View File

@ -78,7 +78,12 @@ int open_log_file (const char *log_file_name)
*/
void close_log_file (void)
{
if (log_file_fd < 0) {
return;
}
close (log_file_fd);
log_file_fd = -1;
}
/*