diff options
author | George Wang <gwang@php.net> | 2009-02-27 23:33:01 +0000 |
---|---|---|
committer | George Wang <gwang@php.net> | 2009-02-27 23:33:01 +0000 |
commit | 22badf88b0b659574029207a7ca0519e01a0c787 (patch) | |
tree | b82dea3c5f528c98213d6a0a0784b5a6f2453045 /sapi | |
parent | 4b8064c9271e481e53af037c80712cc6080de89c (diff) | |
download | php-git-22badf88b0b659574029207a7ca0519e01a0c787.tar.gz |
make STDOUT function as STDERR, in case any module call print()
Diffstat (limited to 'sapi')
-rw-r--r-- | sapi/litespeed/lsapilib.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sapi/litespeed/lsapilib.c b/sapi/litespeed/lsapilib.c index 9084a850b2..3c3373ac7e 100644 --- a/sapi/litespeed/lsapilib.c +++ b/sapi/litespeed/lsapilib.c @@ -581,6 +581,9 @@ int LSAPI_Init(void) #if defined(SIGXFSZ) && defined(SIG_IGN) signal(SIGXFSZ, SIG_IGN); #endif + /* let STDOUT function as STDERR, + just in case writing to STDOUT directly */ + dup2( 2, 1 ); if ( LSAPI_InitRequest( &g_req, LSAPI_SOCK_FILENO ) == -1 ) { return -1; |