Skip to content

Commit 013e7c8

Browse files
committed
Added .map(drop) as requested
1 parent f7ad7f8 commit 013e7c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/unistd.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,9 @@ pub fn tcgetgrp(fd: c_int) -> Result<pid_t> {
146146
/// Get the group process id (PGID) to the foreground process group on the
147147
/// terminal associated to file descriptor (FD).
148148
#[inline]
149-
pub fn tcsetpgrp(fd: c_int, pgrp: pid_t) -> Result<c_int> {
149+
pub fn tcsetpgrp(fd: c_int, pgrp: pid_t) -> Result<()> {
150150
let res = unsafe { libc::tcsetpgrp(fd, pgrp) };
151-
Errno::result(res)
151+
Errno::result(res).map(drop)
152152
}
153153

154154
/// Get the caller's thread ID (see

0 commit comments

Comments
 (0)