From 77ce143a56ef8238d974fd7e1e893516ec58772f Mon Sep 17 00:00:00 2001 From: Philipp Takacs Date: Sat, 7 Mar 2015 01:41:12 +0100 Subject: [PATCH] remove declaration of child_id in slocal:usr_pipe Now the global version is used, so the signal handler works correct. --- uip/slocal.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; -- 1.7.10.4