| 576 |
|
if (!server_state.foreground) |
| 577 |
|
{ |
| 578 |
|
make_daemon(); |
| 579 |
< |
close_standard_fds(); /* this needs to be before init_netio()! */ |
| 579 |
> |
close_standard_fds(); /* this needs to be before init_comm()! */ |
| 580 |
|
} |
| 581 |
|
else |
| 582 |
|
print_startup(getpid()); |
| 583 |
+ |
#endif |
| 584 |
|
|
| 585 |
|
setup_signals(); |
| 585 |
– |
#endif |
| 586 |
|
|
| 587 |
|
get_ircd_platform(ircd_platform); |
| 588 |
|
|
| 594 |
|
init_log(logFileName); |
| 595 |
|
ServerInfo.can_use_v6 = check_can_use_v6(); |
| 596 |
|
init_comm(); /* This needs to be setup early ! -- adrian */ |
| 597 |
+ |
|
| 598 |
|
/* Check if there is pidfile and daemon already running */ |
| 599 |
|
check_pidfile(pidFileName); |
| 600 |
|
|