mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 02:45:22 +00:00
THRIFT-3848: Perl ForkingServer must ignore SIGCHLD to avoid infinite loop
Client: Perl Patch: Jim King <jim.king@simplivity.com> This closes #1040
This commit is contained in:
parent
4300b72b2d
commit
b6983df867
@ -125,7 +125,6 @@ sub _handleException
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# SimpleServer from the Server base class that handles one connection at a time
|
# SimpleServer from the Server base class that handles one connection at a time
|
||||||
#
|
#
|
||||||
@ -191,6 +190,9 @@ sub serve
|
|||||||
{
|
{
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
|
|
||||||
|
# THRIFT-3848: without ignoring SIGCHLD, perl ForkingServer goes into a tight loop
|
||||||
|
$SIG{CHLD} = 'IGNORE';
|
||||||
|
|
||||||
$self->{serverTransport}->listen();
|
$self->{serverTransport}->listen();
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user