apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46425] Apr should set FD_CLOEXEC if APR_FOPEN_NOCLEANUP is not set
Date Sun, 22 Feb 2009 14:48:24 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46425





--- Comment #11 from Stefan Fritsch <sf@sfritsch.de>  2009-02-22 06:48:22 PST ---
(In reply to comment #10)
> Created an attachment (id=23294)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=23294) [details]
> shouldn't dup() descriptor be also marked like this?

I don't think so:

    /* apr_file_dup() retains all old_file flags with the exceptions
     * of APR_INHERIT and APR_FILE_NOCLEANUP.
     * The user must call apr_file_inherit_set() on the dupped
     * apr_file_t when desired.

FD_CLOEXEC should always be unset for the which_dup == 1 case.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


Mime
View raw message