From: Philipp Takacs Date: Sat, 7 Mar 2015 00:41:12 +0000 (+0100) Subject: remove declaration of child_id in slocal:usr_pipe X-Git-Tag: mmh-0.2-RC1~49 X-Git-Url: http://git.marmaro.de/?p=mmh;a=commitdiff_plain;h=77ce143a56ef8238d974fd7e1e893516ec58772f remove declaration of child_id in slocal:usr_pipe Now the global version is used, so the signal handler works correct. --- diff --git a/uip/slocal.c b/uip/slocal.c index cf9a9b0..17be186 100644 --- a/uip/slocal.c +++ b/uip/slocal.c @@ -91,7 +91,7 @@ static char ddate[BUFSIZ]; /* record the delivery date */ struct tws *now; volatile sig_atomic_t eflag = 0; /* flag to indecate interrupt */ -static pid_t child_id; +static volatile pid_t child_id; /* flags for pair->p_flags */ #define P_NIL 0x00 @@ -981,7 +981,6 @@ usr_folder(int fd, char *string) static int usr_pipe(int fd, char *cmd, char *pgm, char **vec, int suppress) { - pid_t child_id; int bytes, seconds, status, n; struct stat st; char *path;