Hi All,
I could see in ps_files_open function of ext/session/mod_files.c having
fcntl call.
Call looks like the following,
fcntl(data->fd, F_SETFD, 1);
And this change has happened on 2 years and 5 months back(version 1.73
of mod_files.c). The comment has the following,
"Set the close-on-exec flag for fds. Child processes should not inherit
the fd."
If it is the intension the last argument to fcntl should be FD_CLOEXEC
right.
I agree that FD_CLOEXEC translates to 1 in Linux. But what about other
systems like NetWare where it translates to 32768.
Can I modify it to FD_CLOEXEC in stead of 1.
With regards
Kamesh Jayachandran
Can I modify it to FD_CLOEXEC in stead of 1.
Absolutely.
- Sascha
Can I modify it to FD_CLOEXEC in stead of 1.
Looks okay to me.
Derick
--
Derick Rethans
http://derickrethans.nl | http://ez.no | http://xdebug.org