comparison 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
comparison
equal deleted inserted replaced
154:94141801dd7e 155:43dd3413c7c7
155 char **argv; 155 char **argv;
156 { 156 {
157 char *inname, *outname; 157 char *inname, *outname;
158 int indesc, outdesc; 158 int indesc, outdesc;
159 int nread; 159 int nread;
160 WAITTYPE status; 160 int status;
161 161
162 #ifndef MAIL_USE_SYSTEM_LOCK 162 #ifndef MAIL_USE_SYSTEM_LOCK
163 struct stat st; 163 struct stat st;
164 long now; 164 long now;
165 int tem; 165 int tem;
395 } 395 }
396 396
397 wait (&status); 397 wait (&status);
398 if (!WIFEXITED (status)) 398 if (!WIFEXITED (status))
399 exit (1); 399 exit (1);
400 else if (WRETCODE (status) != 0) 400 else if (WEXITSTATUS (status) != 0)
401 exit (WRETCODE (status)); 401 exit (WEXITSTATUS (status));
402 402
403 #if !defined (MAIL_USE_MMDF) && !defined (MAIL_USE_SYSTEM_LOCK) 403 #if !defined (MAIL_USE_MMDF) && !defined (MAIL_USE_SYSTEM_LOCK)
404 unlink (lockname); 404 unlink (lockname);
405 #endif /* not MAIL_USE_MMDF and not MAIL_USE_SYSTEM_LOCK */ 405 #endif /* not MAIL_USE_MMDF and not MAIL_USE_SYSTEM_LOCK */
406 406