do not terminate process when read fails

This commit is contained in:
takase1121 2021-06-24 16:01:45 +08:00
parent 257cb47cd1
commit 022f92bcd4
1 changed files with 0 additions and 5 deletions

View File

@ -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);