terminal: set the pty fd non blocking

This commit is contained in:
Shuanglei Tao
2019-12-05 23:19:34 +08:00
parent ca91f40048
commit cfd338ea5e
4 changed files with 25 additions and 4 deletions

View File

@@ -25,6 +25,10 @@ get_sig_name(int sig, char *buf, size_t len);
int
get_sig(const char *sig_name);
// Set the given file descriptor close-on-exec
bool
fd_set_cloexec(const int fd);
// waitpid with WNOHANG and return the status
int
wait_proc(pid_t in, pid_t *out);