From: Guido van Rossum Date: Fri, 12 Jan 1996 01:30:55 +0000 (+0000) Subject: add sigrelse() call for SunOS 4.1; add some fflush() calls X-Git-Tag: v1.4b1~410 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c7fea2feedd240127f7c8d7da6e5dde02688e56c;p=python add sigrelse() call for SunOS 4.1; add some fflush() calls --- diff --git a/Parser/myreadline.c b/Parser/myreadline.c index 28008dbcf1..dd00077d0e 100644 --- a/Parser/myreadline.c +++ b/Parser/myreadline.c @@ -117,6 +117,10 @@ my_readline(prompt) } old_inthandler = signal(SIGINT, onintr); if (setjmp(jbuf)) { +#ifdef HAVE_SIGRELSE + /* This seems necessary on SunOS 4.1 (Rasmus Hahn) */ + sigrelse(SIGINT); +#endif signal(SIGINT, old_inthandler); return NULL; } @@ -140,8 +144,10 @@ my_readline(prompt) n = 100; if ((p = malloc(n)) == NULL) return NULL; + fflush(stdout); if (prompt) fprintf(stderr, "%s", prompt); + fflush(stderr); switch (my_fgets(p, n, stdin)) { case 0: /* Normal case */ break;