]> sourceware.org Git - systemtap.git/commit
PR28923: dtrace.in: add O_EXCL level exclusion on generated C source files
authorFrank Ch. Eigler <fche@redhat.com>
Tue, 1 Mar 2022 16:47:01 +0000 (11:47 -0500)
committerFrank Ch. Eigler <fche@redhat.com>
Tue, 1 Mar 2022 16:47:01 +0000 (11:47 -0500)
commitcfabd38cfdd75e4fa34c7f83af3e607ba9f3a453
treea893cdc4eb9f6bae5396e809a3c7e5df33440e49
parent0de9020c970bceda73e32bbd169c12e7579f21ec
PR28923: dtrace.in: add O_EXCL level exclusion on generated C source files

Adding mode='x' or mode='wx' to the open() call on the temp .c file.
Now a test like this survives without errors:

  for i in `seq 100`
  do
    python3 dtrace.in -o foo.out -G -s /dev/null  &
    python2 dtrace.in -o foo.out -G -s /dev/null  &
  done
dtrace.in
This page took 0.027541 seconds and 5 git commands to generate.