mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-10 22:50:01 +00:00
tweak
This commit is contained in:
parent
951f159901
commit
576fbb97ad
@ -65,7 +65,7 @@ my $xml = qq#
|
|||||||
while (my $request = $scgi->accept) {
|
while (my $request = $scgi->accept) {
|
||||||
|
|
||||||
# fork every new req into its own process (optional)
|
# fork every new req into its own process (optional)
|
||||||
next unless(fork());
|
next unless(my $pid = fork());
|
||||||
my $handle = $request->connection;
|
my $handle = $request->connection;
|
||||||
|
|
||||||
$request->read_env;
|
$request->read_env;
|
||||||
@ -89,5 +89,5 @@ while (my $request = $scgi->accept) {
|
|||||||
#print $handle "Content-Type: text/xml\n\n";
|
#print $handle "Content-Type: text/xml\n\n";
|
||||||
|
|
||||||
print $handle $xml;
|
print $handle $xml;
|
||||||
exit;
|
exit if (!$pid);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user