PERFORCE change 169228 for review

Stanislav Sedov stas at FreeBSD.org
Mon Oct 5 14:59:01 UTC 2009


http://perforce.freebsd.org/chv.cgi?CH=169228

Change 169228 by stas at stas_yandex on 2009/10/05 14:58:11

	- Correct the detection of signal source.

Affected files ...

.. //depot/projects/valgrind/coregrind/m_signals.c#14 edit

Differences ...

==== //depot/projects/valgrind/coregrind/m_signals.c#14 (text+ko) ====

@@ -1407,7 +1407,7 @@
    // them.
    return ( si_code > VKI_SI_USER ? True : False );
 #elif defined(VGO_freebsd)
-   return ( si_code < VKI_SI_USER ? True : False );
+   return ( (si_code & VKI_SI_USER) == 0 ? True : False );
 #elif defined(VGO_darwin)
    // On Darwin 9.6.0, the si_code is completely unreliable.  It should be the
    // case that 0 means "user", and >0 means "kernel".  But:


More information about the p4-projects mailing list