more conventional exception propagation -- taking into account Simple_Thread.fork wrapping;
authorwenzelm
Sun, 28 Nov 2010 15:34:35 +0100
changeset 40783 21f7e8d66a39
parent 40782 aa533c5e3f48
child 40784 177e8cea3e09
more conventional exception propagation -- taking into account Simple_Thread.fork wrapping;
src/Pure/Concurrent/bash.ML
--- a/src/Pure/Concurrent/bash.ML	Sun Nov 28 15:28:48 2010 +0100
+++ b/src/Pure/Concurrent/bash.ML	Sun Nov 28 15:34:35 2010 +0100
@@ -36,7 +36,8 @@
               | Posix.Process.W_STOPPED s =>
                   Result (512 + LargeWord.toInt (Posix.Signal.toWord s)));
           in Synchronized.change result (K res) end
-          handle _ (*sic*) => Synchronized.change result (fn Wait => Signal | res => res)));
+          handle exn =>
+            (Synchronized.change result (fn Wait => Signal | res => res); reraise exn)));
 
     fun terminate () =
       let