From 66642eb8e5f51a675d699c4fe9107202d61d2626 Mon Sep 17 00:00:00 2001 From: "Eric Wong (Contractor, The Linux Foundation)" Date: Fri, 2 Mar 2018 00:50:56 +0000 Subject: searchidx: add PID to error message when die-ing --- lib/PublicInbox/SearchIdx.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/PublicInbox/SearchIdx.pm b/lib/PublicInbox/SearchIdx.pm index f4238fe8..ec3a6f3e 100644 --- a/lib/PublicInbox/SearchIdx.pm +++ b/lib/PublicInbox/SearchIdx.pm @@ -837,7 +837,7 @@ sub remote_close { print $w "close\n" or die "failed to write to pid:$pid: $!\n"; close $w or die "failed to close pipe for pid:$pid: $!\n"; waitpid($pid, 0) == $pid or die "remote process did not finish"; - $? == 0 or die ref($self)." exited with: $?"; + $? == 0 or die ref($self)." pid:$pid exited with: $?"; } 1; -- cgit v1.2.3-24-ge0c7