From 022f92bcd4ccff76666d9e4af705f1879ac9b50a Mon Sep 17 00:00:00 2001 From: takase1121 <20792268+takase1121@users.noreply.github.com> Date: Thu, 24 Jun 2021 16:01:45 +0800 Subject: [PATCH] do not terminate process when read fails --- src/api/process.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/api/process.c b/src/api/process.c index ff197879..e71785cb 100644 --- a/src/api/process.c +++ b/src/api/process.c @@ -171,11 +171,6 @@ static int g_read(lua_State* L, int stream) break; } - // if request for tries was set and nothing - // read kill the process - if(tries > 1 && out < 0) - out = REPROC_EPIPE; - if(out == REPROC_EPIPE){ reproc_kill(self->process); reproc_destroy(self->process);