Revert "Add fix for O_NONBLOCK file-descriptor as output pipe"

This reverts commit be8f7d1716.

This was reverted as with this commit the program would consume large amounts
of cpu time just looping and calling the write function, which would not block.
This commit is contained in:
Tyrolyean 2022-07-17 23:53:44 +02:00
parent 75cdd01de8
commit 51f808d12f
No known key found for this signature in database
GPG Key ID: 81EC9BAC5E9667C6
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ static int write_retry(int fd, const void *buffer, size_t size)
int ret = write(fd, buffer, size);
if (ret < 0) {
if (errno == EINTR || errno == EAGAIN)
if (errno == EINTR)
continue;
perror("write");
return -1;