Re: cvs: php-src(PHP_5_0) /ext/session mod_files.c

From: Date: Thu, 06 Jan 2005 02:37:31 +0000
Subject: Re: cvs: php-src(PHP_5_0) /ext/session mod_files.c
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-29774@lists.php.net to get a copy of this message
People with short memories ;) This was discussed a while back and everybody including ext/session maintainer agreed that that was the right patch to apply since some OS's like Netware don't use magic numbers like 1. So please revert your revert. Edin ----- Original Message ----- From: "Jani Taskinen" <sniper@php.net> To: <php-cvs@lists.php.net> Sent: Thursday, January 06, 2005 2:59 AM Subject: [PHP-CVS] cvs: php-src(PHP_5_0) /ext/session mod_files.c > sniper Wed Jan 5 20:59:52 2005 EDT > > Modified files: (Branch: PHP_5_0) > /php-src/ext/session mod_files.c > Log: > Revert. This is always 1. > > http://cvs.php.net/diff.php/php-src/ext/session/mod_files.c?r1=1.95.2.1&r2=1.95.2.2&ty=u > Index: php-src/ext/session/mod_files.c > diff -u php-src/ext/session/mod_files.c:1.95.2.1 php-src/ext/session/mod_files.c:1.95.2.2 > --- php-src/ext/session/mod_files.c:1.95.2.1 Wed Jan 5 06:09:12 2005 > +++ php-src/ext/session/mod_files.c Wed Jan 5 20:59:52 2005 > @@ -16,7 +16,7 @@ > +----------------------------------------------------------------------+ > */ > > -/* $Id: mod_files.c,v 1.95.2.1 2005/01/05 11:09:12 hyanantha Exp $ */ > +/* $Id: mod_files.c,v 1.95.2.2 2005/01/06 01:59:52 sniper Exp $ */ > > #include "php.h" > > @@ -166,7 +166,7 @@ > flock(data->fd, LOCK_EX); > > #ifdef F_SETFD > - if (fcntl(data->fd, F_SETFD, FD_CLOEXEC)) { > + if (fcntl(data->fd, F_SETFD, 1)) { > php_error_docref(NULL TSRMLS_CC, E_WARNING, "fcntl(%d, F_SETFD, 1) failed: %s (%d)", data->fd, strerror(errno), errno); > } > #endif > > -- > PHP CVS Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > >

« previous php.cvs (#29774) next »