This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Perl_perly_sighandler: combine two conditions
authorDavid Mitchell <davem@iabyn.com>
Tue, 12 Nov 2019 11:28:21 +0000 (11:28 +0000)
committerDavid Mitchell <davem@iabyn.com>
Mon, 18 Nov 2019 09:34:40 +0000 (09:34 +0000)
commitfff75fa71c1ed83f6c8e5a0940c5170b67a0e9e1
treea6638c3f2e766296e413a9f15f2b3835fc2dd433
parent8d61efc53a54233fb943fb2453732400f5e79d18
Perl_perly_sighandler: combine two conditions

The branch is only taken if a number of conditions are true. Combine
them into a single if statement, with the sip test first, so that an
unnecessary call to sigaction() may be skipped if its only going to
immediately fail afterwards because sip isn't true.

Shouldn't be any change in functionality.
mg.c