Function
IdePtyInterceptcreate_producer
Description
This creates a new producer to the PTY consumer consumer_fd.
This uses grantpt(), unlockpt(), and ptsname() to open a new
PTY producer.
Parameters
consumer_fd-
Type:
IdePtyFdA pty.
blocking-
Type:
gbooleanUse
FALSEto set O_NONBLOCK.
Return value
Type: IdePtyFd
A FD for the producer PTY that should be closed with close().
Upon error, IDE_PTY_FD_INVALID (-1) is returned.