Skip to content

Commit 5d0b170

Browse files
committed
Fixed typo in tcsetpgrp
1 parent 81c1c9a commit 5d0b170

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/unistd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ pub fn setsid() -> Result<pid_t> {
136136
/// Get the group process id (GPID) of the foreground process group on the
137137
/// terminal associated to file descriptor (FD).
138138
#[inline]
139-
pub fn tcgetgrp(fd: c_int) -> Result<pid_t> {
139+
pub fn tcgetpgrp(fd: c_int) -> Result<pid_t> {
140140
let res = unsafe { libc::tcgetpgrp(fd) };
141141
Errno::result(res)
142142
}

0 commit comments

Comments
 (0)