diff options
Diffstat (limited to 'src/unistd.rs')
-rw-r--r-- | src/unistd.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/unistd.rs b/src/unistd.rs index 9bdc5876..e97bcdb9 100644 --- a/src/unistd.rs +++ b/src/unistd.rs @@ -146,9 +146,9 @@ pub fn tcgetgrp(fd: c_int) -> Result<pid_t> { /// Get the group process id (PGID) to the foreground process group on the /// terminal associated to file descriptor (FD). #[inline] -pub fn tcsetpgrp(fd: c_int, pgrp: pid_t) -> Result<c_int> { +pub fn tcsetpgrp(fd: c_int, pgrp: pid_t) -> Result<()> { let res = unsafe { libc::tcsetpgrp(fd, pgrp) }; - Errno::result(res) + Errno::result(res).map(drop) } /// Get the caller's thread ID (see |