make killpe portable to machines when kill and getpid are missing on a platform
authorGengbin Zheng <gzheng@illinois.edu>
Sun, 23 Aug 2009 03:34:03 +0000 (03:34 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Sun, 23 Aug 2009 03:34:03 +0000 (03:34 +0000)
src/conv-ccs/ccs-builtins.C

index f4f7d0d8803c1bbdc49b279649f49cb07d56672b..243456296f8d8765ffff9b139a0dd29e56f63b17 100644 (file)
@@ -91,7 +91,11 @@ extern "C" void CcsImpl_kill(void)
 #include <signal.h>
 
 static void ccs_killpe(char *msg) {
+#if CMK_HAS_GETPID
   kill(getpid(), 9);
+#else
+  CmiAbort("ccs_killpe() not supported!");
+#endif
 }
 
 /*************************************************