X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=system.c;h=2d964302bf1b945c210af4071a67177cda66ae91;hp=af915de0048c3a1568b8172c8d50f27e480228bd;hb=b8c71f93b0296f815a6538182343ba67e88c0012;hpb=0ac011f8eb41bab7808881ebf9802b4eb252fe3b diff --git a/system.c b/system.c index af915de..2d96430 100644 --- a/system.c +++ b/system.c @@ -12,11 +12,9 @@ #endif #include "mutt.h" -#ifdef USE_IMAP -# include "imap.h" -# include -#endif +#include +#include #include #include #include @@ -104,12 +102,7 @@ int _mutt_system (const char *cmd, int flags) _exit (127); /* execl error */ } else if (thepid != -1) { -#ifndef USE_IMAP - /* wait for the (first) child process to finish */ - waitpid (thepid, &rc, 0); -#else rc = imap_wait_keepalive (thepid); -#endif } sigaction (SIGCONT, &oldcont, NULL);