X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fgetans.c;h=f3cea2733b9fe5c5ba6fd29da03bd41ad0aa2789;hp=7254d6bd54efc322425e208b08a60570df6f47bc;hb=fc9279e818dfc96c63a5d75a89080cc68cfe1170;hpb=fc71710f8695ea07d852284286b058ecb3955317 diff --git a/sbr/getans.c b/sbr/getans.c index 7254d6b..f3cea27 100644 --- a/sbr/getans.c +++ b/sbr/getans.c @@ -10,6 +10,7 @@ #include #include #include +#include static char ansbuf[BUFSIZ]; static jmp_buf sigenv; @@ -72,5 +73,5 @@ intrser(int i) /* ** should this be siglongjmp? */ - longjmp(sigenv, 1); + close(STDIN_FILENO); }