On 3/27/2006 3:12 PM, Tom Collins wrote:
> I haven't had a chance to look closely at it, but I will probably 
> include it in the next release.
> 
> Regardless of whether using qmail-inject over qmail-queue is a 
> band-aid, we should be looking at the exit code and behaving properly.

Here's [what seems to be] the correct way to fix the problem:

--- vdelivermail.c.orig 2006-03-27 21:58:21.810949000 -0500
+++ vdelivermail.c      2006-03-27 21:58:52.741031000 -0500
@@ -672,8 +672,9 @@

       close(fdm);
       waitpid(inject_pid,&child,0);
-      if (wait_exitcode(child) == 0) return;
-      vexiterr (EXIT_DEFER, "system error");
+      unsigned int xcode = wait_exitcode(child);
+      if (xcode == 0) return;
+      vexiterr (xcode, "system error");
     }
 }

-- 

Jeremy Kister
http://jeremy.kister.net./


Reply via email to