Skip to content

Instantly share code, notes, and snippets.

@Elv13
Created March 9, 2014 22:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Elv13/9455953 to your computer and use it in GitHub Desktop.
Save Elv13/9455953 to your computer and use it in GitHub Desktop.
sn callback API protype
function module.spawn2(command,args)
local args = args or {}
--args.callback -- A function
--args.tags -- a tag or table of tags
--args.tag same as tags
--args.property -- Table or client properies
--with_shell --boolean
-- Return object
-- {
-- pid --pid_t
-- sn_id -- Request identifier
-- --All "args"
-- }
-- Return object signal
-- "spawn::initiated"
-- "spawn::canceled"
-- "spawn::completed"
-- "spawn::timeout"
-- "spawn::change"
-- "manage"
-- "unmanage"
-- where the "request" array can be modified and modification will take effect
-- until tyrannical decide to apply the properties, then they wont
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment