55 struct sigaction act = { 0 };
56 struct sigaction oldtstp = { 0 };
57 struct sigaction oldcont = { 0 };
60 if (!cmd || (*cmd ==
'\0'))
67 act.sa_handler = SIG_DFL;
70 act.sa_flags = SA_RESTART;
72 sigemptyset(&act.sa_mask);
73 sigaction(SIGTSTP, &act, &oldtstp);
74 sigaction(SIGCONT, &act, &oldcont);
92 sigaction(SIGCONT, &oldcont, NULL);
93 sigaction(SIGTSTP, &oldtstp, NULL);
98 rc = (pid != -1) ? (WIFEXITED(rc) ? WEXITSTATUS(rc) : -1) : -1;
char ** EnvList
Private copy of the environment variables.
int imap_wait_keep_alive(pid_t pid)
Wait for a process to change state.
Convenience wrapper for the library headers.
Prototypes for many functions.
void mutt_sig_reset_child_signals(void)
Reset ignored signals back to the default.
void mutt_sig_block_system(void)
Block signals before calling exec()
void mutt_sig_unblock_system(bool restore)
Restore previously blocked signals.
int mutt_system(const char *cmd)
Run an external command.