mirror of
https://github.com/opnsense/src.git
synced 2026-02-18 18:20:26 -05:00
Properly terminate some warning messages.
This commit is contained in:
parent
cd7be69206
commit
51260bb27f
2 changed files with 6 additions and 6 deletions
|
|
@ -185,12 +185,12 @@ sub tinderbox($$$) {
|
|||
|
||||
# Done...
|
||||
if (waitpid($pid, 0) == -1) {
|
||||
warn("waitpid(): $!");
|
||||
warn("waitpid(): $!\n");
|
||||
} elsif ($? & 0xff) {
|
||||
warn("tinderbox caught signal ", $? & 0x7f);
|
||||
warn("tinderbox caught signal ", $? & 0x7f, "\n");
|
||||
$error = 1;
|
||||
} elsif ($? >> 8) {
|
||||
warn("tinderbox returned exit code ", $? >> 8);
|
||||
warn("tinderbox returned exit code ", $? >> 8, "\n");
|
||||
$error = 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -188,11 +188,11 @@ sub spawn($@) {
|
|||
die("child: exec(): $!\n");
|
||||
}
|
||||
if (waitpid($pid, 0) == -1) {
|
||||
return warning("waitpid(): $!");
|
||||
return warning("waitpid(): $!\n");
|
||||
} elsif ($? & 0xff) {
|
||||
return warning("$cmd caught signal", $? & 0x7f);
|
||||
return warning("$cmd caught signal ", $? & 0x7f, "\n");
|
||||
} elsif ($? >> 8) {
|
||||
return warning("$cmd returned exit code", $? >> 8);
|
||||
return warning("$cmd returned exit code ", $? >> 8, "\n");
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue