X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fslocal.c;h=cf91737d0cce2beb9674fec24391bbb92e64796b;hb=c70ca7816838825c93fbc54ac9e4a6e2a7bef6d8;hp=37173f65b29b32c03f72d8d6564481c0143da253;hpb=5dd6771b28c257af405d7248639ed0e3bcdce38b;p=mmh diff --git a/uip/slocal.c b/uip/slocal.c index 37173f6..cf91737 100644 --- a/uip/slocal.c +++ b/uip/slocal.c @@ -1065,7 +1065,11 @@ usr_file (int fd, char *mailbox, int mbx_style) } /* close and unlock file */ - mbx_close (mailbox, md); + if (mbx_close (mailbox, md) == NOTOK) { + if (verbose) + adorn ("", "error closing:"); + return -1; + } if (verbose) verbose_printf (", success.\n"); @@ -1202,7 +1206,7 @@ usr_pipe (int fd, char *cmd, char *pgm, char **vec, int suppress) * Ruthlessly kill the child and anything * else in its process group. */ - KILLPG(child_id, SIGKILL); + killpg(child_id, SIGKILL); if (verbose) verbose_printf (", timed-out; terminated\n"); return -1;