Skip to content

Commit ee47e55

Browse files
committed
bugfix: ngx.pipe: proc:wait() returns false only when the sub-process exited abnormally.
1 parent c368af2 commit ee47e55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ngx_http_lua_pipe.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2162,7 +2162,7 @@ ngx_http_lua_pipe_wait_retval(ngx_http_lua_ffi_pipe_proc_t *proc, lua_State *L)
21622162

21632163
if (pipe->timeout) {
21642164
pipe->timeout = 0;
2165-
lua_pushboolean(L, 0);
2165+
lua_pushnil(L);
21662166
lua_pushliteral(L, "timeout");
21672167
return 2;
21682168
}

0 commit comments

Comments
 (0)