Skip to content

Commit

Permalink
edited for grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
bchess committed Apr 30, 2024
1 parent 731f920 commit 11a34d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/subprocess-serialization.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ details about using PyTorch across processes


## Warning about fork() and threads
Be aware that Python `os.fork()` is often not a viable option, as it can be known to cause deadlocks if you have multiple threads. Python 3.12 and above
Be aware that Python `os.fork()` is often not a viable option, as it can cause deadlocks if you have multiple threads. Python 3.12 and above
will [issue a deprecation warning](https://github.com/python/cpython/pull/100229) if you attempt this. Some 3rd-party packages that rely on sockets or file descriptors may also not behave correctly when a process unexpectedly forks.

A subprocess (fork + exec) is generally safer, but you do not inherently get
Expand Down

0 comments on commit 11a34d5

Please sign in to comment.