handle return value of mkstemp to silence the chatty warning.
authorEric Bohm <ebohm@illinois.edu>
Wed, 11 Sep 2013 22:57:49 +0000 (17:57 -0500)
committerEric Bohm <ebohm@illinois.edu>
Wed, 11 Sep 2013 22:57:49 +0000 (17:57 -0500)
src/ck-core/ckmemcheckpoint.h

index 8d66a61f74961899fa51ab0da98905b4ca929913..26888fb17573acd3189dc984bba68c94efc66a53 100644 (file)
@@ -73,7 +73,10 @@ public:
 #else
       sprintf(fname, "/tmp/ckpt%d-%d-XXXXXX", CkMyPe(), idx);
 #endif
-      mkstemp(fname);
+      if(mkstemp(fname)<0)
+       {
+         CmiAbort("mkstemp fail in checkpoint");
+       }
 #else
       fname=tmpnam(NULL);
 #endif