[Lilproxy-project] simple daemonology
Status: Pre-Alpha
Brought to you by:
bugg5
|
From: Dominik B. <ki...@we...> - 2001-06-19 14:20:56
|
Hi, I've experimentated a wee bit with fork() and produced this fork() && exit(); creating the child and exit afterwards, however because I haven't much sparetime at the moment I've done nothing to redirect STDIN/OUT/ERR. BTW: shouldn't we redirect the STD's into 'real' .log files instead to /dev/null? Greets Dominik //Patch// --- lilproxy.pl.origThu Jun 14 15:01:46 2001 +++ lilproxy.plTue Jun 19 16:10:19 2001 @@ -109,6 +110,9 @@ # You have already seen this when we create objects ( ...->new() ). +print "Entering Daemon-Mode...\n"; +fork() && exit(); + while (my $conn = $proxy->accept) # # See perldoc -f while. //end patch// -- If you only have a hammer, you tend to see every problem as a nail. |