X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/6fc2909634fb431c65ecfa8b6db4f6519f99b389..a23477eb:/uip/rcvtty.c?ds=sidebyside diff --git a/uip/rcvtty.c b/uip/rcvtty.c index d32a1baa..bd6fc335 100644 --- a/uip/rcvtty.c +++ b/uip/rcvtty.c @@ -1,6 +1,4 @@ - -/* - * rcvtty.c -- a rcvmail program (a lot like rcvalert) handling IPC ttys +/* rcvtty.c -- a rcvmail program (a lot like rcvalert) handling IPC ttys * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for @@ -189,7 +187,7 @@ message_fd (char **vec) struct stat st; if ((tfile = m_mktemp2(NULL, invo_name, &fd, NULL)) == NULL) { - advise(NULL, "unable to create temporary file in %s", get_temp_dir()); + inform("unable to create temporary file in %s", get_temp_dir()); return NOTOK; } (void) m_unlink(tfile); /* Use fd, no longer need the file name. */ @@ -198,7 +196,8 @@ message_fd (char **vec) /* fork error */ close (fd); return header_fd (); - } else if (child_id) { + } + if (child_id) { /* parent process */ if (!setjmp (myctx)) { SIGNAL (SIGALRM, alrmser); @@ -254,7 +253,7 @@ header_fd (void) charstring_t scanl = NULL; if ((tfile = m_mktemp2(NULL, invo_name, &fd, NULL)) == NULL) { - advise(NULL, "unable to create temporary file in %s", get_temp_dir()); + inform("unable to create temporary file in %s", get_temp_dir()); return NOTOK; } (void) m_unlink(tfile); /* Use fd, no longer need the file name. */