X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=system.c;h=2d964302bf1b945c210af4071a67177cda66ae91;hp=c9612f606fc229a3ebba9383f2ef3d123cbc3321;hb=6352691bb26029be7ee621bd880d0f17747c61c2;hpb=c3e57678c8be193fc137854020f3a90887be97c9 diff --git a/system.c b/system.c index c9612f6..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 @@ -100,16 +98,11 @@ int _mutt_system (const char *cmd, int flags) sigaction (SIGTSTP, &act, NULL); sigaction (SIGCONT, &act, NULL); - execl (EXECSHELL, "sh", "-c", cmd, NULL); + execl ("/bin/sh", "sh", "-c", cmd, NULL); _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);