l.s.command_spawner : module documentation

Part of lp.services

Execute commands in parallel sub-processes.
Function get_process_output_files Return the files we watch for output coming from process.
Function make_files_nonblocking Put each of files in non-blocking mode.
Function has_pending_output Does the given event mask from poll indicate there's data to read?
Function has_terminated Does the given event mask from poll indicate process death?
Class CommandSpawner Simple manager to execute commands in parallel.
Class OutputLineHandler Collect and handle lines of output from a sub-process.
Class ReturnCodeReceiver A minimal completion handler for CommandSpawner processes.
def get_process_output_files(process):
Return the files we watch for output coming from process.
def make_files_nonblocking(files):
Put each of files in non-blocking mode.

This allows the CommandSpawner to read all available output from a process without blocking until the process completes.

def has_pending_output(poll_event):
Does the given event mask from poll indicate there's data to read?
def has_terminated(poll_event):
Does the given event mask from poll indicate process death?
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.