diff options
| author | Sam Varshavchik | 2013-08-29 08:28:58 -0400 | 
|---|---|---|
| committer | Sam Varshavchik | 2013-08-29 08:30:38 -0400 | 
| commit | d61d9e62ef6d46f5747a9099fe308455de348947 (patch) | |
| tree | 5ba81406d2606fbbb11ab476da1335ada424f705 /maildrop/filter.C | |
| parent | 2b94d904b8c03ab9ae4074230ac50aa1ad7f362b (diff) | |
| download | courier-libs-d61d9e62ef6d46f5747a9099fe308455de348947.tar.bz2 | |
maildrop: xfilter command fixes
Diffstat (limited to 'maildrop/filter.C')
| -rw-r--r-- | maildrop/filter.C | 19 | 
1 files changed, 17 insertions, 2 deletions
| diff --git a/maildrop/filter.C b/maildrop/filter.C index 373eb47..d59e2ec 100644 --- a/maildrop/filter.C +++ b/maildrop/filter.C @@ -185,7 +185,15 @@ int	maxfd=pipe1.fds[0];  			if (n < 0)  			{ -				if (errno != EINTR)	// Perfectly OK +				if (errno != EINTR +#ifdef EAGAIN +				    && errno != EAGAIN +#endif +#ifdef EWOULDBLOCK +				    && errno != EWOULDBLOCK +#endif + +				    )	// Perfectly OK  				{  					FD_CLR(pipe0.fds[1], &writefd);  					pipe0.close1(); @@ -211,7 +219,14 @@ int	maxfd=pipe1.fds[0];  			if (readbuflen < 0)  			{ -				if (errno != EINTR) +				if (errno != EINTR +#ifdef EAGAIN +				    && errno != EAGAIN +#endif +#ifdef EWOULDBLOCK +				    && errno != EWOULDBLOCK +#endif +				    )  				{  					merr << "maildrop: error reading from filter.\n";  					errflag=1; | 
