mirror of
https://github.com/curl/curl.git
synced 2025-02-05 14:30:10 +08:00
runtests: work around a perl without SIGUSR1
At least msys2 perl v5.32.1 doesn't seem to define this signal. Since this signal is only used for debugging, just ignore if setting it fails. Reported-by: Marcel Raad Fixes #11350 Closes #11366
This commit is contained in:
parent
3cfd9f2378
commit
0526525c33
@ -189,7 +189,10 @@ sub runner_init {
|
||||
# TODO: set up better signal handlers
|
||||
$SIG{INT} = 'IGNORE';
|
||||
$SIG{TERM} = 'IGNORE';
|
||||
$SIG{USR1} = 'IGNORE';
|
||||
eval {
|
||||
# some msys2 perl versions don't define SIGUSR1
|
||||
$SIG{USR1} = 'IGNORE';
|
||||
};
|
||||
|
||||
$thisrunnerid = $$;
|
||||
print "Runner $thisrunnerid starting\n" if($verbose);
|
||||
|
@ -271,7 +271,10 @@ sub catch_usr1 {
|
||||
}
|
||||
}
|
||||
|
||||
$SIG{USR1} = \&catch_usr1;
|
||||
eval {
|
||||
# some msys2 perl versions don't define SIGUSR1
|
||||
$SIG{USR1} = \&catch_usr1;
|
||||
};
|
||||
$SIG{PIPE} = 'IGNORE'; # these errors are captured in the read/write calls
|
||||
|
||||
##########################################################################
|
||||
|
Loading…
Reference in New Issue
Block a user