A Unix-specific daemon thread that terminates the program immediately when the parent process no longer exists.
A Windows-specific daemon thread that listens for a special event that signals an interrupt and, optionally, terminates the program immediately when the parent process no longer exists.
Create the poller. At least one of the optional parameters must be provided.
interrupt_handle : HANDLE (int), optional
parent_handle : HANDLE (int), optional
Create an interrupt event handle.
The parent process should use this static method for creating the interrupt event that is passed to the child process. It should store this handle and use it with send_interrupt to interrupt the child process.
Run the poll loop. This method never returns.
Sends an interrupt event using the specified handle.