diff --git a/src/exec_pty.c b/src/exec_pty.c index 422989275..414ac373c 100644 --- a/src/exec_pty.c +++ b/src/exec_pty.c @@ -1263,5 +1263,5 @@ safe_close(int fd) errno = EINVAL; return -1; } - debug_return_int(fd); + debug_return_int(close(fd)); }