Skip to content

Commit b19dd3d

Browse files
authored
Merge pull request #185 from 3noch/patch-1
Add note to waitForProcess about thread-safety
2 parents 3fafbb8 + 12234ee commit b19dd3d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

System/Process.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,10 @@ GHC Note: in order to call @waitForProcess@ without blocking all the
654654
other threads in the system, you must compile the program with
655655
@-threaded@.
656656
657+
Note that it is safe to call @waitForProcess@ for the same process in multiple
658+
threads. When the process ends, threads blocking on this call will wake in
659+
FIFO order.
660+
657661
(/Since: 1.2.0.0/) On Unix systems, a negative value @'ExitFailure' -/signum/@
658662
indicates that the child was terminated by signal @/signum/@.
659663
The signal numbers are platform-specific, so to test for a specific signal use

0 commit comments

Comments
 (0)