]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/uxkern/ux_exception.c
xnu-792.10.96.tar.gz
[apple/xnu.git] / bsd / uxkern / ux_exception.c
index e576ad299f006954a9856b51855ff58712c17f27..678666e39ef8bdb6af20fcec0cff76f28c90aa59 100644 (file)
@@ -234,8 +234,12 @@ catch_exception_raise(
            /*
             *  Send signal.
             */
-           if (ux_signal != 0)
-               threadsignal(th_act, ux_signal, ucode);
+           if (ux_signal != 0) {
+                       ut->uu_exception = exception;
+                       //ut->uu_code = code[0]; // filled in by threadsignal
+                       ut->uu_subcode = code[1];                       
+                       threadsignal(th_act, ux_signal, code[0]);
+               }
 
            thread_deallocate(th_act);
        }