X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fmsh.c;h=07110fd8e08398e9e90df0ad2e8be2ce9450e1db;hb=a2469f5ecbca3a179251ac9b777b561bc5245d4c;hp=9e56ddd4ba869ea66cb3203339b7c80d8d7382bc;hpb=ed759f583c7c5b2487ee5317d3ad4bc791a1d249;p=mmh diff --git a/uip/msh.c b/uip/msh.c index 9e56ddd..07110fd 100644 --- a/uip/msh.c +++ b/uip/msh.c @@ -195,10 +195,10 @@ static int initaux_io (struct Cmd *); static void fin_io (struct Cmd *, int); static void finaux_io (struct Cmd *); static void m_init (void); -static RETSIGTYPE intrser (int); -static RETSIGTYPE pipeser (int); -static RETSIGTYPE quitser (int); -static RETSIGTYPE alrmser (int); +static void intrser (int); +static void pipeser (int); +static void quitser (int); +static void alrmser (int); static int pINI (void); static int pQRY (char *, int); static int pQRY1 (int); @@ -1618,13 +1618,9 @@ seq_setcur (struct msgs *mp, int msgnum) -static RETSIGTYPE +static void intrser (int i) { -#ifndef RELIABLE_SIGNALS - SIGNAL (SIGINT, intrser); -#endif - discard (stdout); interrupted++; @@ -1635,13 +1631,9 @@ intrser (int i) } -static RETSIGTYPE +static void pipeser (int i) { -#ifndef RELIABLE_SIGNALS - SIGNAL (SIGPIPE, pipeser); -#endif - if (broken_pipe++ == 0) fprintf (stderr, "broken pipe\n"); told_to_quit++; @@ -1654,13 +1646,9 @@ pipeser (int i) } -static RETSIGTYPE +static void quitser (int i) { -#ifndef RELIABLE_SIGNALS - SIGNAL (SIGQUIT, quitser); -#endif - told_to_quit++; interrupted++; @@ -1671,7 +1659,7 @@ quitser (int i) } -static RETSIGTYPE +static void alrmser (int i) { longjmp (peerenv, DONE);