mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 05:02:10 +00:00
wrap fork so we can drop priority in child processes
This commit is contained in:
@@ -65,7 +65,7 @@ $SIG{CHLD} = "IGNORE";
|
||||
|
||||
while (my $request = $scgi->accept) {
|
||||
# fork every new req into its own process (optional)
|
||||
my $pid = fork();
|
||||
my $pid = switch_fork();
|
||||
|
||||
if ($pid) {
|
||||
$request->close();
|
||||
|
||||
Reference in New Issue
Block a user