mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Revert "fix pipe detection for STDERR."
This reverts commit a757f276f9.
This commit is contained in:
@@ -634,8 +634,8 @@ static inline int isPipe( int fd )
|
||||
{
|
||||
char achPeer[128];
|
||||
socklen_t len = 128;
|
||||
if ((getpeername(fd, (struct sockaddr *)achPeer, &len) != 0 )
|
||||
&& (errno == ENOTCONN || errno == ENOTSOCK))
|
||||
if (( getpeername( fd, (struct sockaddr *)achPeer, &len ) != 0 )&&
|
||||
( errno == ENOTCONN ))
|
||||
return 0;
|
||||
else
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user