diff options
Diffstat (limited to 'src/daemon/daemon.c')
-rw-r--r-- | src/daemon/daemon.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c index 1f6ca050..280d7789 100644 --- a/src/daemon/daemon.c +++ b/src/daemon/daemon.c | |||
@@ -751,11 +751,10 @@ send_param_adapter (struct MHD_Connection *connection, | |||
751 | (size_t) left); | 751 | (size_t) left); |
752 | if (ret != -1) | 752 | if (ret != -1) |
753 | return ret; | 753 | return ret; |
754 | if (EINTR == errno) | 754 | if ((EINTR == errno) || (EAGAIN == errno)) |
755 | return 0; | 755 | return 0; |
756 | if ( (EINVAL == errno) || | 756 | if ( (EINVAL == errno) || |
757 | (EBADF == errno) || | 757 | (EBADF == errno) ) |
758 | (EAGAIN == errno) ) | ||
759 | return -1; | 758 | return -1; |
760 | /* None of the 'usual' sendfile errors occurred, so we should try | 759 | /* None of the 'usual' sendfile errors occurred, so we should try |
761 | to fall back to 'SEND'; see also this thread for info on | 760 | to fall back to 'SEND'; see also this thread for info on |