2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-30 22:05:46 +00:00

Add debug tracing to tcsetattr_nobg().

This commit is contained in:
Todd C. Miller
2023-02-02 09:31:25 -07:00
parent 3c9c8668c1
commit e63eeee7b4

View File

@@ -115,6 +115,7 @@ tcsetattr_nobg(int fd, int flags, struct termios *tp)
{
struct sigaction sa, osa;
int rc;
debug_decl(tcsetattr_nobg, SUDO_DEBUG_UTIL);
/*
* If we receive SIGTTOU from tcsetattr() it means we are
@@ -131,7 +132,7 @@ tcsetattr_nobg(int fd, int flags, struct termios *tp)
} while (rc != 0 && errno == EINTR && !got_sigttou);
sigaction(SIGTTOU, &osa, NULL);
return rc;
debug_return_int(rc);
}
/*