Skip to content

Commit

Permalink
bugfix: ngx.pipe: proc:wait() returns false only when the sub-process…
Browse files Browse the repository at this point in the history
… exited abnormally.
  • Loading branch information
spacewander committed Feb 21, 2019
1 parent c368af2 commit ee47e55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ngx_http_lua_pipe.c
Original file line number Diff line number Diff line change
Expand Up @@ -2162,7 +2162,7 @@ ngx_http_lua_pipe_wait_retval(ngx_http_lua_ffi_pipe_proc_t *proc, lua_State *L)

if (pipe->timeout) {
pipe->timeout = 0;
lua_pushboolean(L, 0);
lua_pushnil(L);
lua_pushliteral(L, "timeout");
return 2;
}
Expand Down

0 comments on commit ee47e55

Please sign in to comment.