From f16b3d1ac2edaceb64463f29a3e394a0102aa554 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Wed, 10 Nov 2010 17:57:11 +0100 Subject: [PATCH] don't call exit in library The feof() detection of closed stdin doesn't work anyway. --- newt.c | 3 --- 1 file changed, 3 deletions(-) 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; -- 2.47.2