Skip to content

Commit

Permalink
add LockOSThread to kill therad
Browse files Browse the repository at this point in the history
Signed-off-by: ningmingxiao <ning.mingxiao@zte.com.cn>
  • Loading branch information
ningmingxiao committed Dec 12, 2024
1 parent 370d58d commit 9ac7c7a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fifo.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ func openFifo(ctx context.Context, fn string, flag int, perm os.FileMode) (*fifo
go func() {
if wg != nil {
defer wg.Done()
runtime.LockOSThread()
}
var file *os.File
fn, err := h.Path()
Expand Down

0 comments on commit 9ac7c7a

Please sign in to comment.