]> granicus.if.org Git - php/commitdiff
Revert. This is always 1.
authorfoobar <sniper@php.net>
Thu, 6 Jan 2005 01:59:52 +0000 (01:59 +0000)
committerfoobar <sniper@php.net>
Thu, 6 Jan 2005 01:59:52 +0000 (01:59 +0000)
ext/session/mod_files.c

index afe51b42b9496253ccd45ee049b215d8d876c479..15cd5d77475ea63288dce09a668b3dbb66411a4a 100644 (file)
@@ -166,7 +166,7 @@ static void ps_files_open(ps_files *data, const char *key TSRMLS_DC)
                        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