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

From: Date: Wed, 05 Jan 2005 11:09:13 +0000
Subject: cvs: php-src(PHP_5_0) /ext/session mod_files.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-29769@lists.php.net to get a copy of this message
hyanantha Wed Jan 5 06:09:13 2005 EDT Modified files: (Branch: PHP_5_0) /php-src/ext/session mod_files.c Log: passing FD_CLOEXEC would be a standard way to pass argument to fcntl's last argument than 1 http://cvs.php.net/diff.php/php-src/ext/session/mod_files.c?r1=1.95&r2=1.95.2.1&ty=u Index: php-src/ext/session/mod_files.c diff -u php-src/ext/session/mod_files.c:1.95 php-src/ext/session/mod_files.c:1.95.2.1 --- php-src/ext/session/mod_files.c:1.95 Mon Mar 29 16:44:07 2004 +++ php-src/ext/session/mod_files.c Wed Jan 5 06:09:12 2005 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: mod_files.c,v 1.95 2004/03/29 21:44:07 wez Exp $ */ +/* $Id: mod_files.c,v 1.95.2.1 2005/01/05 11:09:12 hyanantha Exp $ */ #include "php.h" @@ -166,7 +166,7 @@ flock(data->fd, LOCK_EX); #ifdef F_SETFD - if (fcntl(data->fd, F_SETFD, 1)) { + if (fcntl(data->fd, F_SETFD, FD_CLOEXEC)) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "fcntl(%d, F_SETFD, 1) failed: %s (%d)", data->fd, strerror(errno), errno); } #endif

« previous php.cvs (#29769) next »