mirror of https://github.com/openssl/openssl.git
util/wrap.pl.in: Use parentheses so `kill` gets all its arguments
In perl, this may be ambiguous:
fn (expr1), expr2
Is the comma (which may be `=>` just as well in this case) a separator
between arguments to `fn`, or is it the comma operator, separating the
expressions `fn(expr1)` and `expr2`? It appears that in this particular
case, perl takes the existing parentheses to mean the latter. When the
former was intended, extra parentheses are required.
Fixes #19209
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19211)
(cherry picked from commit ef6d6e452d
)
This commit is contained in:
parent
684ba5c942
commit
d83c465754
|
@ -69,7 +69,7 @@ die "wrap.pl: Failed to execute '", join(' ', @cmd), "': $!\n"
|
|||
if $waitcode == -1;
|
||||
|
||||
# When the subprocess aborted on a signal, we simply raise the same signal.
|
||||
kill ($? & 255) => $$ if ($? & 255) != 0;
|
||||
kill(($? & 255) => $$) if ($? & 255) != 0;
|
||||
|
||||
# If that didn't stop this script, mimic what Unix shells do, by
|
||||
# converting the signal code to an exit code by setting the high bit.
|
||||
|
|
Loading…
Reference in New Issue