ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro/myhttpd/myhttpd
Revision: 1.17
Committed: Sun Aug 19 23:57:52 2001 UTC (22 years, 11 months ago) by root
Branch: MAIN
Changes since 1.16: +1 -0 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 root 1.2 #!/usr/bin/perl
2 root 1.1
3 root 1.7 use PApp::SQL;
4 root 1.4 use Coro::Event;
5 root 1.10 use Time::HiRes 'time';
6    
7     $starttime = time;
8 root 1.4
9 root 1.7 $PApp::SQL::DBH = PApp::SQL::connect_cached __FILE__, "DBI:mysql:myhttpd"
10     or die "unable to connect to database";
11    
12 root 1.16 $VERSION = 0.010;
13 root 1.8
14 root 1.4 $SIG{CHLD} = 'IGNORE';
15    
16 root 1.1 require "config.pl";
17 root 1.17 require "misc.pl";
18 root 1.5 require "netgeo.pl";
19 root 1.6 require "access.pl";
20 root 1.7 require "diridx.pl";
21 root 1.5 require "httpd.pl";
22 root 1.3 require "shell.pl";
23 root 1.4
24     loop;
25    
26     if ($RESTART) {
27     $_->close for @listen_sockets;
28     fork && exec $0, @ARGV;
29     loop(60*60);
30     }
31    
32     print "myhttpd ended\n";#d#
33