diff --git a/job.c b/job.c
index 53569f4f..5c64fb83 100644
--- a/job.c
+++ b/job.c
@@ -232,6 +232,7 @@ reap_children (block, err)
 	  else
 #endif
 	    pid = wait (&status);
+	  fprintf (stderr,"%sblocking wait returned %d\n", block?"":"non",pid);
 
 	  if (pid <= 0)
 	    /* No local children.  */