syscall: can't inherit fcntlFlock on linux after syscall.Exec #25249
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
OS-Linux
Milestone
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.10.1 linux/amd64
go version go1.8.5 linux/amd64
go version go1.10.2 linux/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?What did you do?
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
See code:
https://play.golang.org/p/jTMF5dejA74
What did you expect to see?
Should inherit fcntlFlock on linux after syscall.Exec.
man 2 fcntl:
I test c code below. It can inherit fcntlFlock on linux after exceve.
I also test go code on macOS. It can inherit fcntlFlock on macOS after syscall.Exec, too.
What did you see instead?
Can't inherit fcntlFlock on linux after syscall.Exec.
The text was updated successfully, but these errors were encountered: