Skip to content
This repository has been archived by the owner on Dec 12, 2020. It is now read-only.

Commit

Permalink
px.posix_spawn: Add pid key to returned table.
Browse files Browse the repository at this point in the history
  • Loading branch information
tongson committed Jun 4, 2018
1 parent db2f659 commit 7b73cac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vendor/c/px/src/px.c
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,8 @@ Cposix_spawn(lua_State *L)
}
}
}
lua_pushinteger(L, (lua_Integer)pid);
lua_setfield(L, -2, "pid");
lua_settop(L, -1);
return 1;
error:
Expand Down

0 comments on commit 7b73cac

Please sign in to comment.