Skip to content

Commit 6aa009f

Browse files
michael-yujijakepetroules
authored andcommitted
suspend all other threads before closing file descriptors
1 parent 54cb2ae commit 6aa009f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Sources/Commands/SwiftRunCommand.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,9 @@ public struct SwiftRunCommand: AsyncSwiftCommand {
313313
sigprocmask(SIG_UNBLOCK, &sig_set_all, nil)
314314

315315
#if os(FreeBSD) || os(OpenBSD)
316+
#if os(FreeBSD)
317+
pthread_suspend_all_np()
318+
#endif
316319
closefrom(3)
317320
#else
318321
#if os(Android)

0 commit comments

Comments
 (0)