Process:close()method

Try a gracefull process termination.

Return value

This method returns a boolean value indicating if the operation succeeded.

Example

--! luart-extensions import sysutils local ui = require "ui" -- create a process launching Wordpad local p = sysutils.Process("notepad.exe") -- start the process p:spawn() -- wait 5sec sleep(5000) if p:close() then ui.info("Notepad process has been aborted") end