X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Frcvtty.c;h=5a3093be804166666d78266495bc879199bef9a0;hb=c3ed95b3c5530b84a73dbdd531cb9aca9ba8dea0;hp=219af22421bd0f232af3a24789d2be7c5473a90e;hpb=d1b702b1220d45e441b2b9597a8cf58edb51a653;p=mmh diff --git a/uip/rcvtty.c b/uip/rcvtty.c index 219af22..5a3093b 100644 --- a/uip/rcvtty.c +++ b/uip/rcvtty.c @@ -78,7 +78,7 @@ char *getusername(void); /* * static prototypes */ -static RETSIGTYPE alrmser (int); +static void alrmser (int); static int message_fd (char **); static int header_fd (void); static void alert (char *, int); @@ -204,13 +204,9 @@ main (int argc, char **argv) } -static RETSIGTYPE +static void alrmser (int i) { -#ifndef RELIABLE_SIGNALS - SIGNAL (SIGALRM, alrmser); -#endif - longjmp (myctx, 1); } @@ -223,13 +219,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) {