mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-15 07:44:13 +00:00
wrap fork so we can drop priority in child processes
This commit is contained in:
1 parent
0995d133a6
commit
52eff9451c
8 files changed
+31
-11
No files matched your search
@@ -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