Type deai.builtin.spawn:ChildProcess

See spawn.run for more information about this type

Properties

pid

Pid of the child process

pid: integer
Type:

integer

Pid of the child process

Methods

kill(signal)

Send signal to child process

kill(signal) void
Return type:

void

Parameters:

signal (integer)

Send signal to child process

Signals

exit(exit_code, signal)

The child process exited.

stderr_line(line)

The child process wrote one line to stderr.

stdout_line(line)

The child process wrote one line to stdout.

signal exit(exit_code, signal)
Parameters:
  • exit_code (integer)

  • signal (integer)

The child process exited.

signal stderr_line(line)
Parameters:

line (string)

The child process wrote one line to stderr.

Only generated if “ignore_output” wasn’t set to true.

signal stdout_line(line)
Parameters:

line (string)

The child process wrote one line to stdout.

Only generated if “ignore_output” wasn’t set to true.