Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ static int luv_spawn(lua_State* L) {
// collected between now and when they are used in uv_spawn.
// However, we don't need to ref args[0] since we don't pop that
// from the stack. Note: args_refs is a LUA_NOREF-terminated array
// when it is non-NULL
// when it is non-NULL
if (len > 1) {
args_refs = (int*)malloc(len * sizeof(int));
if (args_refs)
Expand Down Expand Up @@ -309,7 +309,9 @@ static int luv_parse_signal(lua_State* L, int slot) {
return lua_tonumber(L, slot);
}
if (lua_isstring(L, slot)) {
return luv_sig_string_to_num(lua_tostring(L, slot));
int signum = luv_sig_string_to_num(lua_tostring(L, slot));
luaL_argcheck(L, signum, slot, "Invalid Signal name");
return signum;
}
return SIGTERM;
}
Expand Down
Loading