]> sourceware.org Git - systemtap.git/commit
stapdyn: Use FD_CLOEXEC on _stp_mem_fd instead of O_CLOEXEC
authorJosh Stone <jistone@redhat.com>
Tue, 2 Oct 2012 17:55:19 +0000 (10:55 -0700)
committerJosh Stone <jistone@redhat.com>
Tue, 2 Oct 2012 18:41:41 +0000 (11:41 -0700)
commit7d8bff7071b839b9c1e9bb5e140ac83281f739ec
treeb3696afe07416c767dc4f3c22b5ca840343e4eca
parent2cb68c02477f041df579e18f0815015984e29883
stapdyn: Use FD_CLOEXEC on _stp_mem_fd instead of O_CLOEXEC

O_CLOEXEC is only available since Linux 2.6.23, which is fairly old, but
we may still care to run on such systems.  Using fcntl FD_CLOEXEC can
accomplish the same thing, and we don't need to worry about the race of
other threads calling exec at the same time as our module load, because
the whole process will be frozen.
runtime/dyninst/runtime.h
This page took 0.026356 seconds and 5 git commands to generate.