Properly terminate some warning messages.

This commit is contained in:
Dag-Erling Smørgrav 2003-02-18 12:50:37 +00:00
parent cd7be69206
commit 51260bb27f
2 changed files with 6 additions and 6 deletions

View File

@ -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;
}

View File

@ -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;
}