[sudo-commits] sudo changeset 15078:132aad609392

Todd C. Miller Todd.Miller at sudo.ws
Fri Sep 22 11:01:43 MDT 2023


changeset:	15078:132aad609392 in /raid/repos/sudo
tags:		tip
details:	https://www.sudo.ws/repos/sudo/rev/132aad609392
user:		Todd C. Miller <Todd.Miller at sudo.ws>
date:		Fri Sep 22 10:53:41 2023 -0600
files:		src/exec_monitor.c src/exec_pty.c

Log Message:
	No need to loop reading from/writing to a blocking socketpair.

	This removes some infinite loops that can cause static analyzer
	warnings.  The fds are not in non-blocking mode and we use restartable
	system calls so there is no need to loop.


diffstat:

 src/exec_monitor.c |  24 +++++++++++-------------
 src/exec_pty.c     |   6 ++----
 2 files changed, 13 insertions(+), 17 deletions(-)



More information about the sudo-commits mailing list