[ CCode ( has_construct_function = false ) ]
public Pty.foreign_sync (int fd, Cancellable? cancellable = null) throws Error
Creates a new Pty for the PTY master fd
.
No entry will be made in the lastlog, utmp or wtmp system files.
Note that the newly created Pty will take ownership of fd
and close it on finalize.
fd |
a file descriptor to the PTY |
cancellable |
a Cancellable, or |
a new Pty for |