X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Frcvtty.c;h=07053d2cf0728b3fdc9b82ed8c9bec3077ac65fd;hb=9680f38826145311f8720dab2d19d3796e8514ee;hp=8b04d61d0c8bf0e14fbfd8763f6a4a5d364bcc91;hpb=5dd6771b28c257af405d7248639ed0e3bcdce38b;p=mmh diff --git a/uip/rcvtty.c b/uip/rcvtty.c index 8b04d61..07053d2 100644 --- a/uip/rcvtty.c +++ b/uip/rcvtty.c @@ -223,13 +223,7 @@ message_fd (char **vec) char tmpfil[BUFSIZ]; struct stat st; -#ifdef HAVE_MKSTEMP fd = mkstemp (strncpy (tmpfil, "/tmp/rcvttyXXXXX", sizeof(tmpfil))); -#else - unlink (mktemp (strncpy (tmpfil, "/tmp/rcvttyXXXXX", sizeof(tmpfil)))); - if ((fd = open (tmpfil, O_RDWR | O_CREAT | O_TRUNC, 0600)) == NOTOK) - return header_fd (); -#endif unlink (tmpfil); if ((child_id = vfork()) == NOTOK) { @@ -263,7 +257,7 @@ message_fd (char **vec) * Ruthlessly kill the child and anything * else in its process group. */ - KILLPG(child_id, SIGKILL); + killpg(child_id, SIGKILL); } close (fd); return header_fd ();