Roxen.git/
server/
base_server/
roxen.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2001-02-02
2001-02-02 11:54:49 by Fredrik Noring <noring@nocrew.org>
7de3f38f61ea83f6bb52cbd4ae963ca10cf1d620 (
7
lines) (+
4
/-
3
)
[
Show
|
Annotate
]
Branch:
5.2
Make it possible to provide an exit code to roxen->restart
Rev: server/base_server/roxen.pike:1.623
4:
// Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others. // ABS and suicide systems contributed freely by Francesco Chemolli
-
constant cvs_version="$Id: roxen.pike,v 1.
622
2001/
01
/
31
09
:
39
:
13
per
Exp $";
+
constant cvs_version="$Id: roxen.pike,v 1.
623
2001/
02
/
02
11
:
54
:
49
noring
Exp $";
// Used when running threaded to find out which thread is the backend thread, // for debug purposes only.
392:
// Perhaps somewhat misnamed, really... This function will close all // listen ports and then quit. The 'start' script should then start a // new copy of roxen automatically.
-
void restart(float|void i)
+
void restart(float|void i
, void|int exit_code
)
//! Restart roxen, if the start script is running { werror(describe_backtrace(backtrace()));
-
call_out(low_shutdown, i, -1);
+
call_out(low_shutdown, i,
exit_code ||
-1);
} void shutdown(float|void i)