We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d69ab9 commit aa3983bCopy full SHA for aa3983b
sapi/litespeed/lsapilib.c
@@ -635,8 +635,8 @@ static inline int isPipe( int fd )
635
{
636
char achPeer[128];
637
socklen_t len = 128;
638
- if (( getpeername( fd, (struct sockaddr *)achPeer, &len ) != 0 )&&
639
- ( errno == ENOTCONN ))
+ if ((getpeername(fd, (struct sockaddr *)achPeer, &len) != 0 )
+ && (errno == ENOTCONN || errno == ENOTSOCK))
640
return 0;
641
else
642
return 1;
0 commit comments