Roxen.git/
server/
base_server/
roxen.pike
Branch:
Tag:
Non-build tags
All tags
No tags
1997-07-22
1997-07-22 03:41:17 by Henrik Grubbström (Grubba) <grubba@grubba.org>
b3996569f9de7ea90a70d794c09ad155577ec5e1 (
12
lines) (+
7
/-
5
)
[
Show
|
Annotate
]
Branch:
5.2
Signal fix.
Rev: server/base_server/roxen.pike:1.87
1:
-
constant cvs_version = "$Id: roxen.pike,v 1.
86
1997/07/
20
03:
40
:
20
grubba Exp $";
+
constant cvs_version = "$Id: roxen.pike,v 1.
87
1997/07/
22
03:
41
:
17
grubba Exp $";
#define IN_ROXEN #include <roxen.h> #include <config.h>
2194:
init_shuffler(); // No locking here.. Each process need one on it's own. #endif create_host_name_lookup_processes();
-
signal
(
signum
("SIGUSR1"
)
,
exit_when_done);
-
signal(signum(
"
SIGUSR2
"),
exit_when_done
)
;
-
signal(signum(
"SIGHUP"
), exit_when_done);
-
signal(signum("SIGINT"),
exit_when_done)
;
+
foreach
(
(
{
"SIGUSR1",
"SIGUSR2",
"SIGHUP",
"
SIGINT
"
}
),
string sig
)
{
+
catch {
+
signal(signum(
sig
), exit_when_done);
+
}
;
+
}
initiate_configuration_port( 1 ); perror("Time to boot: "+(time()-start_time)+" seconds.\n");