Revision: | 1.21 |
Committed: | Wed Aug 29 01:40:44 2001 UTC (22 years, 10 months ago) by root |
Branch: | MAIN |
Changes since 1.20: | +1 -1 lines |
Log Message: | *** empty log message *** |
# | User | Rev | Content |
---|---|---|---|
1 | root | 1.2 | #!/usr/bin/perl |
2 | root | 1.1 | |
3 | root | 1.4 | use Coro::Event; |
4 | root | 1.10 | use Time::HiRes 'time'; |
5 | |||
6 | $starttime = time; | ||
7 | root | 1.4 | |
8 | root | 1.21 | $VERSION = 0.025; |
9 | root | 1.8 | |
10 | root | 1.4 | $SIG{CHLD} = 'IGNORE'; |
11 | |||
12 | root | 1.1 | require "config.pl"; |
13 | root | 1.17 | require "misc.pl"; |
14 | root | 1.20 | require "database.pl"; |
15 | root | 1.5 | require "netgeo.pl"; |
16 | root | 1.19 | require "err.pl"; |
17 | root | 1.6 | require "access.pl"; |
18 | root | 1.7 | require "diridx.pl"; |
19 | root | 1.5 | require "httpd.pl"; |
20 | root | 1.3 | require "shell.pl"; |
21 | root | 1.4 | |
22 | loop; | ||
23 | |||
24 | if ($RESTART) { | ||
25 | $_->close for @listen_sockets; | ||
26 | fork && exec $0, @ARGV; | ||
27 | loop(60*60); | ||
28 | } | ||
29 | |||
30 | print "myhttpd ended\n";#d# | ||
31 |