Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
luvit.lua: map process.pid to native.getpid()
Allows for PID to be extracted from Lua process. ./src/luv.c: Mapped getpid() to lua_getpid() Translates C function for getting Process ID to Lua function. ./src/luv_process.c: Defined function for retrieving PID Calls for PID from System. ./src/luv_process.h: Added lua_getpid() function Allows function to be called in luv.c.
- Loading branch information
1 parent
153fefa
commit d8bc9b9
Showing
4 changed files
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,5 +26,6 @@ | |
|
||
int luv_spawn(lua_State* L); | ||
int luv_process_kill(lua_State* L); | ||
int luv_getpid(lua_State* L); | ||
|
||
#endif |