Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions starcheck/src/starcheck.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1165,6 +1165,10 @@ sub usage
}

END {
# Keep and return program exit status at end of END.
my $exit_status = $?;

# If the Python process id is defined, kill that process and wait
if (defined $pid) {
if ($par{verbose} gt 1){
my $server_calls = call_python("get_server_calls");
Expand All @@ -1178,6 +1182,7 @@ END
kill 9, $pid; # must it be 9 (SIGKILL)?
my $gone_pid = waitpid $pid, 0; # then check that it's gone
}
exit($exit_status);
};

=pod
Expand Down