We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7ad7f8 commit 013e7c8Copy full SHA for 013e7c8
src/unistd.rs
@@ -146,9 +146,9 @@ pub fn tcgetgrp(fd: c_int) -> Result<pid_t> {
146
/// Get the group process id (PGID) to the foreground process group on the
147
/// terminal associated to file descriptor (FD).
148
#[inline]
149
-pub fn tcsetpgrp(fd: c_int, pgrp: pid_t) -> Result<c_int> {
+pub fn tcsetpgrp(fd: c_int, pgrp: pid_t) -> Result<()> {
150
let res = unsafe { libc::tcsetpgrp(fd, pgrp) };
151
- Errno::result(res)
+ Errno::result(res).map(drop)
152
}
153
154
/// Get the caller's thread ID (see
0 commit comments