• Austin Clements's avatar
    runtime: pass CLONE_SYSVSEM to clone · 2673f9ed
    Austin Clements authored
    SysV semaphore undo lists should be shared by threads, just like
    several other resources listed in cloneFlags. Currently we don't do
    this, but it probably doesn't affect anything because 1) probably
    nobody uses SysV semaphores from Go and 2) Go-created threads never
    exit until the process does. Beyond being the right thing to do,
    user-level QEMU requires this flag because it depends on glibc to
    create new threads and glibc uses this flag.
    
    Fixes #20763.
    
    Change-Id: I1d1dafec53ed87e0f4d4d432b945e8e68bb72dcd
    Reviewed-on: https://go-review.googlesource.com/48170
    Run-TryBot: Austin Clements <austin@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    2673f9ed
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...