projects
/
mmh
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92005d4
)
remove declaration of child_id in slocal:usr_pipe
author
Philipp Takacs
<philipp@bureaucracy.de>
Sat, 7 Mar 2015 00:41:12 +0000
(
01:41
+0100)
committer
Philipp Takacs
<philipp@bureaucracy.de>
Sat, 7 Mar 2015 00:41:12 +0000
(
01:41
+0100)
Now the global version is used, so the signal handler
works correct.
uip/slocal.c
patch
|
blob
|
history
diff --git
a/uip/slocal.c
b/uip/slocal.c
index
cf9a9b0
..
17be186
100644
(file)
--- 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;