Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit aa3983b

Browse files
committed
fix pipe detection for STDERR.
1 parent 9d69ab9 commit aa3983b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎sapi/litespeed/lsapilib.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -635,8 +635,8 @@ static inline int isPipe( int fd )
635635
{
636636
char achPeer[128];
637637
socklen_t len = 128;
638-
if ((getpeername(fd, (struct sockaddr *)achPeer, &len) != 0 )&&
639-
( errno == ENOTCONN ))
638+
if ((getpeername(fd, (struct sockaddr *)achPeer, &len) != 0 )
639+
&& (errno == ENOTCONN ||errno==ENOTSOCK))
640640
return 0;
641641
else
642642
return 1;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /