Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Indent the rest of the code (examples, buildtools, doc...) except for examples/SMPI...
[simgrid.git] / teshsuite / xbt / parallel_log_crashtest.c
index 3d55f8c..7fb2715 100644 (file)
@@ -1,8 +1,7 @@
-/* $Id$ */
-
 /* synchro_crashtest -- tries to crash the logging mecanism by doing // logs*/
 
-/* Copyright (c) 2007 Martin Quinson. All rights reserved.                  */
+/* Copyright (c) 2007, 2008, 2009, 2010. The SimGrid Team.
+ * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -71,7 +70,9 @@ int crasher(int argc, char *argv[])
   /* spawn threads */
   for (i = 0; i < crasher_amount; i++) {
     char *name = bprintf("thread %d", i);
-    crashers[i] = xbt_thread_create(name, &crasher_thread, &id[i]);
+    crashers[i] =
+        xbt_thread_create(name, &crasher_thread, &id[i],
+                          0 /*not joinable */ );
     free(name);
   }