New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spawn callback #9
Commits on Jan 14, 2011
-
changed function used for spawning processes
changed from g_spawn_command_line_async to g_spawn_async, so we can get the PID of the child process
Commits on Jan 17, 2011
Commits on Jan 20, 2011
Commits on Jan 21, 2011
-
add callback handling infrastructure
* create a table in the registry to store the Lua callback handler functions * add an entry in that callbacks table for each spawned process
Commits on Jan 23, 2011
-
-
-
made definition of callback optional - check func. type
* made the lua callback function argument to luaH_luakit_spawn optional * ensure that the type of the element received as second argument is a function
Commits on Jan 24, 2011
-
pass termination status to Lua callback function
now the function defined as callback receives 2 arguments: * the termination type: one of either: normal exit (NORMAL_EXIT), termination by a signal (TERM_SIGNAL), or unknown reason (TERM_UNKNOWN) * the termination number. When the process terminated normally, it contains the return code of the process. When terminated by a signal, it contains the signal number.
-
-
expose codes for types of process finalization to lua side
3 new items added to the `luakit` namespace: luakit.PROC_TERM_EXIT luakit.PROC_TERM_SIGNAL luakit.PROC_TERM_UNKNOWN
-
changed callback data to pass std{out,err} file descriptors
those descriptors will be used to pass the std{out,err} to the Lua callback function as text.
Javier Rojas committedJan 24, 2011 -
Javier Rojas committed
Jan 24, 2011 -
moved identical memory releases to a single location
Javier Rojas committedJan 24, 2011
Commits on Feb 21, 2011
Commits on Mar 14, 2011
-
Revert "async-callback: added support for passing stdin and stdout to…
… the lua callback" This reverts commit b0fe8e2.
Javier Rojas committedMar 14, 2011 -
Revert "added missing free() calls"
This reverts commit b12644f.
Javier Rojas committedMar 14, 2011 -
Revert "changed callback data to pass std{out,err} file descriptors"
This reverts commit be234e9. Conflicts: luah.c
Javier Rojas committedMar 14, 2011 -
Javier Rojas committed
Mar 14, 2011