Skip to content
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

Closed
wants to merge 21 commits into from
Closed

Spawn callback #9

wants to merge 21 commits into from

Commits on Jan 14, 2011

  1. 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
    jerojasro committed Jan 14, 2011
    Copy the full SHA
    4f3e67e View commit details
    Browse the repository at this point in the history

Commits on Jan 17, 2011

  1. test callback handler

    jerojasro committed Jan 17, 2011
    Copy the full SHA
    550a681 View commit details
    Browse the repository at this point in the history

Commits on Jan 20, 2011

  1. added docs for lua callback handling

    Added a bunch of TODOs...
    jerojasro committed Jan 20, 2011
    Copy the full SHA
    c878e88 View commit details
    Browse the repository at this point in the history

Commits on Jan 21, 2011

  1. 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
    jerojasro committed Jan 21, 2011
    Copy the full SHA
    94fd0ac View commit details
    Browse the repository at this point in the history

Commits on Jan 23, 2011

  1. Copy the full SHA
    1c9070c View commit details
    Browse the repository at this point in the history
  2. TODOs for callback handling

    jerojasro committed Jan 23, 2011
    Copy the full SHA
    1a56e59 View commit details
    Browse the repository at this point in the history
  3. 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
    jerojasro committed Jan 23, 2011
    Copy the full SHA
    2bbb3ff View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2011

  1. 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.
    jerojasro committed Jan 24, 2011
    Copy the full SHA
    9d672f9 View commit details
    Browse the repository at this point in the history
  2. TODO added

    jerojasro committed Jan 24, 2011
    Copy the full SHA
    3d71d5f View commit details
    Browse the repository at this point in the history
  3. 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
    jerojasro committed Jan 24, 2011
    Copy the full SHA
    046be68 View commit details
    Browse the repository at this point in the history
  4. 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 committed Jan 24, 2011
    Copy the full SHA
    be234e9 View commit details
    Browse the repository at this point in the history
  5. added missing free() calls

    Javier Rojas committed Jan 24, 2011
    Copy the full SHA
    b12644f View commit details
    Browse the repository at this point in the history
  6. moved identical memory releases to a single location

    Javier Rojas committed Jan 24, 2011
    Copy the full SHA
    e80b1ee View commit details
    Browse the repository at this point in the history

Commits on Feb 21, 2011

  1. Copy the full SHA
    b0fe8e2 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    8178c18 View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2011

  1. Revert "async-callback: added support for passing stdin and stdout to…

    … the lua callback"
    
    This reverts commit b0fe8e2.
    Javier Rojas committed Mar 14, 2011
    Copy the full SHA
    908d77c View commit details
    Browse the repository at this point in the history
  2. Revert "added missing free() calls"

    This reverts commit b12644f.
    Javier Rojas committed Mar 14, 2011
    Copy the full SHA
    3f642b6 View commit details
    Browse the repository at this point in the history
  3. Revert "changed callback data to pass std{out,err} file descriptors"

    This reverts commit be234e9.
    
    Conflicts:
    
    	luah.c
    Javier Rojas committed Mar 14, 2011
    Copy the full SHA
    90513ac View commit details
    Browse the repository at this point in the history
  4. spawn_callback - added docs

    Javier Rojas committed Mar 14, 2011
    Copy the full SHA
    5ef55e1 View commit details
    Browse the repository at this point in the history

Commits on Mar 15, 2011

  1. Copy the full SHA
    0de43e7 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    eadeb55 View commit details
    Browse the repository at this point in the history