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 a757f27

Browse files
committed
fix pipe detection for STDERR.
1 parent 2650248 commit a757f27

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
@@ -634,8 +634,8 @@ static inline int isPipe( int fd )
634634
{
635635
char achPeer[128];
636636
socklen_t len = 128;
637-
if ((getpeername(fd, (struct sockaddr *)achPeer, &len) != 0 )&&
638-
( errno == ENOTCONN ))
637+
if ((getpeername(fd, (struct sockaddr *)achPeer, &len) != 0 )
638+
&& (errno == ENOTCONN ||errno==ENOTSOCK))
639639
return 0;
640640
else
641641
return 1;

0 commit comments

Comments
(0)

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