forked from goliath/shadermeh
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:
parent
75cdd01de8
commit
51f808d12f
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ static int write_retry(int fd, const void *buffer, size_t size)
|
||||||
int ret = write(fd, buffer, size);
|
int ret = write(fd, buffer, size);
|
||||||
|
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
if (errno == EINTR || errno == EAGAIN)
|
if (errno == EINTR)
|
||||||
continue;
|
continue;
|
||||||
perror("write");
|
perror("write");
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in a new issue