Spawn

Holds information on how to spawn off subprocesses On Linux systems, it uses forkpty On Windows systems, it uses OVERLAPPED io on named pipes

Members

Functions

cleanup
void cleanup()

On windows, calls CloseHandle on the io handles Spawn uses Does nothing on linux as linux automatically closes resources when parent dies

readNextChunk
void readNextChunk()

Returns the next toRead of data as a string

sendData
void sendData(string command)

Sends command to the pty

spawn
void spawn(string cmd)
Undocumented in source. Be warned that the author may not have intended to support it.
spawn
void spawn(string cmd, string[] args)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

allData
string allData;
Undocumented in source.
inWritePipe
HANDLE inWritePipe;
Undocumented in source.
outReadPipe
HANDLE outReadPipe;
Undocumented in source.
overlapped
OVERLAPPED overlapped;
Undocumented in source.
overlappedBuffer
ubyte[4096] overlappedBuffer;
Undocumented in source.

Meta