diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/unistd.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unistd.rs b/src/unistd.rs index 68a22ea1..f06f708b 100644 --- a/src/unistd.rs +++ b/src/unistd.rs @@ -136,7 +136,7 @@ pub fn setsid() -> Result<pid_t> { /// Get the group process id (GPID) of the foreground process group on the /// terminal associated to file descriptor (FD). #[inline] -pub fn tcgetgrp(fd: c_int) -> Result<pid_t> { +pub fn tcgetpgrp(fd: c_int) -> Result<pid_t> { let res = unsafe { libc::tcgetpgrp(fd) }; Errno::result(res) } |