Commit e7cd916e authored by unknown's avatar unknown

Improve error message that describes waitpid($pid) returned unexpected result

parent 4693771f
...@@ -220,7 +220,8 @@ sub spawn_parent_impl { ...@@ -220,7 +220,8 @@ sub spawn_parent_impl {
my $ret_pid= waitpid($pid,0); my $ret_pid= waitpid($pid,0);
if ( $ret_pid != $pid ) if ( $ret_pid != $pid )
{ {
mtr_error("$path ($pid) got lost somehow"); mtr_error("waitpid($pid, 0) returned $ret_pid " .
"when waiting for '$path'");
} }
return mtr_process_exit_status($?); return mtr_process_exit_status($?);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment