harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gshiman...@apache.org
Subject svn commit: r594886 - /harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/linux/crash_handler.cpp
Date Wed, 14 Nov 2007 14:01:37 GMT
Author: gshimansky
Date: Wed Nov 14 06:01:34 2007
New Revision: 594886

URL: http://svn.apache.org/viewvc?rev=594886&view=rev
Log:
Fixed FREEBSD and gettid


Modified:
    harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/linux/crash_handler.cpp

Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/linux/crash_handler.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/linux/crash_handler.cpp?rev=594886&r1=594885&r2=594886&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/linux/crash_handler.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/linux/crash_handler.cpp Wed Nov 14 06:01:34
2007
@@ -74,7 +74,13 @@
 
     static const int tid_len = 10;
     char tid[tid_len];
-    snprintf(tid, tid_len, "%d", gettid());
+    snprintf(tid, tid_len, "%d",
+#if defined(FREEBSD)
+        getpid()
+#else
+        gettid()
+#endif
+	);
 
     if (fork() == 0)
     {



Mime
View raw message