mirror of
https://github.com/lihop/godot-xterm.git
synced 2025-07-12 08:04:08 +02:00
Kill child process and close pty on exit
- Adds kill() method to LibuvUtils. - Adds close() method to Pipe.
This commit is contained in:
parent
55b0a0577d
commit
c81da3820b
10 changed files with 53 additions and 9 deletions
|
@ -212,8 +212,11 @@ func destroy() -> void:
|
|||
# Kill the pty.
|
||||
# sigint: The signal to send. By default this is SIGHUP.
|
||||
# This is not supported on Windows.
|
||||
func kill(sigint: int = Signal.SIGHUP) -> void:
|
||||
pass
|
||||
func kill(signum: int = Signal.SIGHUP) -> void:
|
||||
if _pipe:
|
||||
_pipe.close()
|
||||
if pid > 0:
|
||||
LibuvUtils.kill(pid, signum)
|
||||
|
||||
|
||||
func fork(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue