+Wed Apr 17 22:07:59 CEST 2002 Johnny Mnemonic <johnny@themnemonic.org>
+
+ * Fixed a bug in the pid writing function, which couldn't be
+ written in a root-owned directory.
+
Tue Apr 16 09:34:40 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
* Defined that channel message to unknown Channel ID must
silc_schedule_signal_register(silcd->schedule, SIGTERM, stop_server, NULL);
silc_schedule_signal_register(silcd->schedule, SIGINT, stop_server, NULL);
- /* Drop root if we are not in debug mode, so you don't need to bother about
- file writing permissions and so on */
- if (!silc_debug)
- silc_server_drop_privs(silcd);
-
if (!foreground) {
/* Before running the server, fork to background. */
silc_server_daemonise(silcd);
}
}
+ /* Drop root if we are not in debug mode, so you don't need to bother about
+ file writing permissions and so on */
+ if (!silc_debug)
+ silc_server_drop_privs(silcd);
+
/* Run the server. When this returns the server has been stopped
and we will exit. */
silc_server_run(silcd);