test_43() {
cp -p /bin/ls $DIR/$tdir/$tfile
- exec 9>> $DIR/$tdir/$tfile
+ multiop $DIR/$tdir/$tfile Ow_c &
+ pid=$!
+ # give multiop a chance to open
+ sleep 1
+
$DIR/$tdir/$tfile && error || true
- exec 9<&-
+ kill -USR1 $pid
}
run_test 43 "execution of file opened for write should return -ETXTBSY"