[pulseaudio-tickets] [PulseAudio] #679: Use of O_CLOEXEC is not BSD friendly

PulseAudio trac-noreply at tango.0pointer.de
Thu Oct 29 03:32:51 PDT 2009


#679: Use of O_CLOEXEC is not BSD friendly
---------------------+------------------------------------------------------
  Reporter:  xtophe  |       Owner:  lennart
      Type:  defect  |      Status:  new    
 Milestone:          |   Component:  core   
Resolution:          |    Keywords:         
---------------------+------------------------------------------------------
Changes (by matthijs):

 * cc: matthijs (added)


Comment:

 This does not affect just BSD, also older Linux systems (< 2.6.23) break
 on this (I've come across this bug when compiling Pulse for OpenWRT).

 As for the patch, it looks like an elegant solution to solve the problem.
 If there is such a pa_make_fd_cloexec function, is there any reason it's
 not used in
 [http://git.0pointer.de/?p=pulseaudio.git;a=blob;f=src/pulsecore/database-
 tdb.c;h=b79d2837dc40110cb82101700d4619dfdf6bae65;hb=HEAD#l79 src/pulsecore
 /database-tdb]? There, the O_CLOEXEC flag is just left out if it's not
 supported.

-- 
Ticket URL: <http://pulseaudio.org/ticket/679#comment:5>
PulseAudio <http://pulseaudio.org/>
The PulseAudio Sound Server


More information about the pulseaudio-bugs mailing list