[Rt-commit] [svn] r1031 - in rt/branches/rt-3.3: . bin
jesse at pallas.eruditorum.org
jesse at pallas.eruditorum.org
Tue Jun 8 01:05:47 EDT 2004
Author: jesse
Date: Tue Jun 8 01:05:46 2004
New Revision: 1031
Modified:
rt/branches/rt-3.3/ (props changed)
rt/branches/rt-3.3/bin/standalone_httpd.in
Log:
----------------------------------------------------------------------
r1752 at debian: jesse | 2004-06-08T13:50:52.709840Z
standalone httpd is now forking rather than singleprocess
----------------------------------------------------------------------
Modified: rt/branches/rt-3.3/bin/standalone_httpd.in
==============================================================================
--- rt/branches/rt-3.3/bin/standalone_httpd.in (original)
+++ rt/branches/rt-3.3/bin/standalone_httpd.in Tue Jun 8 01:05:46 2004
@@ -8,6 +8,9 @@
use Socket;
+$SIG{CHLD} = "IGNORE"; # reap child processes
+
+
RT::Init();
my $port = shift || '8080';
@@ -32,6 +35,8 @@
for ( ; accept( Remote, HTTPDaemon ); close Remote ) {
+ fork and next;
+
*STDIN = *Remote;
*STDOUT = *Remote;
@@ -85,7 +90,7 @@
$RT::Handle->ForceRollback;
$RT::Logger->crit( "Transaction not committed. Usually indicates a software fault. Data loss may have occurred");
}
-
+ exit(); # our forked process
}
}
More information about the Rt-commit
mailing list