Skip to content

Commit a97db68

Browse files
committed
sim: fix macOS MetaDrive support
Skip unblock_stdout() on macOS - os.forkpty() crashes after raylib/AppKit initialization due to CoreFoundation fork safety.
1 parent e2fd6f3 commit a97db68

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

system/manager/manager.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,9 @@ def main() -> None:
209209

210210

211211
if __name__ == "__main__":
212-
unblock_stdout()
212+
# Skip unblock_stdout on macOS - os.forkpty() causes crashes with raylib/AppKit
213+
if sys.platform != 'darwin':
214+
unblock_stdout()
213215

214216
try:
215217
main()

0 commit comments

Comments
 (0)