Turns out the doc comment on os.File was lying about its methods being safe for concurrent use. The race detector picked up a data race from concurrent use of Fd and Close. This change eliminates that by calling Fd in the prepare routine. Signed-off-by: Ophestra <cat@gensokyo.uk> |
||
---|---|---|
.. | ||
api.go | ||
export_test.go | ||
export.go | ||
seccomp-export.c | ||
seccomp-export.h | ||
seccomp.go |