From: Miroslav Lichvar Date: Wed, 10 Nov 2010 16:57:11 +0000 (+0100) Subject: don't call exit in library X-Git-Tag: r0-52-13~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f16b3d1ac2edaceb64463f29a3e394a0102aa554;p=thirdparty%2Fnewt.git don't call exit in library The feof() detection of closed stdin doesn't work anyway. --- diff --git a/newt.c b/newt.c index f3f49ff..4e37bc1 100644 --- a/newt.c +++ b/newt.c @@ -565,10 +565,7 @@ int newtGetKey(void) { if (key == SLANG_GETKEY_ERROR) { /* Either garbage was read, or stdin disappeared * (the parent terminal was proably closed) - * if the latter, die. */ - if (feof(stdin)) - exit(1); if (needResize) { needResize = 0; return NEWT_KEY_RESIZE;