https://bugzilla.novell.com/show_bug.cgi?id=746704
https://bugzilla.novell.com/show_bug.cgi?id=746704#c30
--- Comment #30 from Cristian Rodríguez
Good catch, I did not see there's a write(8) after close(8). However I know what is the fd 8, but I did not find descriptor 7 ;-)
fcntl(7, F_DUPFD_CLOEXEC, 3) = 8
But the code below does not make a sense, so I assume sudo is in very strange state after EINTR
close(8) = 0 write(8, "\21", 1) = 1 rt_sigreturn(0x8) = -1 EINTR (Interrupted system call) select(8, [3 7], [], NULL, NULL) = 1 (in [7]) read(7, "\21", 1)
Question is ..in what piece of the puzzle write() is interrupted.. unless I am missing something EINTR is a temporary error condition and hence has to be handled with TEMP_FAILURE_RETRY( write(.... ) ) ..however Im afraid that wont solve the problem, as fd 8 is closed *before* write... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.