Mercurial > hg > xemacs-beta
diff lib-src/movemail.c @ 155:43dd3413c7c7 r20-3b4
Import from CVS: tag r20-3b4
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:39:39 +0200 |
parents | 538048ae2ab8 |
children | 6b37e6ddd302 |
line wrap: on
line diff
--- a/lib-src/movemail.c Mon Aug 13 09:38:27 2007 +0200 +++ b/lib-src/movemail.c Mon Aug 13 09:39:39 2007 +0200 @@ -157,7 +157,7 @@ char *inname, *outname; int indesc, outdesc; int nread; - WAITTYPE status; + int status; #ifndef MAIL_USE_SYSTEM_LOCK struct stat st; @@ -397,8 +397,8 @@ wait (&status); if (!WIFEXITED (status)) exit (1); - else if (WRETCODE (status) != 0) - exit (WRETCODE (status)); + else if (WEXITSTATUS (status) != 0) + exit (WEXITSTATUS (status)); #if !defined (MAIL_USE_MMDF) && !defined (MAIL_USE_SYSTEM_LOCK) unlink (lockname);