X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fslocal.c;h=086fac313811102847f352ad51bc74b8f890830a;hp=f03d48717a1fa22b33afc2bf0cb1a91b5ba7c103;hb=fc71710f8695ea07d852284286b058ecb3955317;hpb=612e67b21d1c9a6cc5db0e2903ddaeb5f2fbe2a0 diff --git a/uip/slocal.c b/uip/slocal.c index f03d487..086fac3 100644 --- a/uip/slocal.c +++ b/uip/slocal.c @@ -175,7 +175,7 @@ static int timely(char *, char *); static int usr_file(int, char *); static int usr_pipe(int, char *, char *, char **, int); static int usr_folder(int, char *); -static RETSIGTYPE alrmser(int); +static void alrmser(int); static void get_sender(char *, char **); static int copy_message(int, char *, int); static void verbose_printf(char *fmt, ...); @@ -1106,7 +1106,7 @@ static int usr_pipe(int fd, char *cmd, char *pgm, char **vec, int suppress) { pid_t child_id; - int bytes, seconds, status; + int bytes, seconds, status, n; struct stat st; char *path; @@ -1133,7 +1133,9 @@ usr_pipe(int fd, char *cmd, char *pgm, char **vec, int suppress) if (fd != 3) { dup2(fd, 3); } - closefds(4); + for (n=4; n