... | ... |
@@ -35,6 +35,7 @@ |
35 | 35 |
* 2003-04-08 init_mallocs split into init_{pkg,shm}_mallocs and |
36 | 36 |
* init_shm_mallocs called after cmd. line parsing (andrei) |
37 | 37 |
* 2003-04-15 added tcp_disable support (andrei) |
38 |
+ * 2003-05-09 closelog() before openlog to force opening a new fd (needed on solaris) (andrei) |
|
38 | 39 |
* |
39 | 40 |
*/ |
40 | 41 |
|
... | ... |
@@ -488,6 +489,7 @@ int daemonize(char* name) |
488 | 489 |
}; |
489 | 490 |
|
490 | 491 |
/* close any open file descriptors */ |
492 |
+ closelog(); |
|
491 | 493 |
for (r=3;r<MAX_FD; r++){ |
492 | 494 |
close(r); |
493 | 495 |
} |