summaryrefslogtreecommitdiff
path: root/src/comm
diff options
context:
space:
mode:
authorgoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>2004-11-05 18:53:30 +0000
committergoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>2004-11-05 18:53:30 +0000
commit3d9aeef43457bf52db46b3eec1eeb5c1f63e4cfd (patch)
tree6c78aeb6843602a6f6355cc7450d9214ef797733 /src/comm
parentca1d33d0c6e9349b418266bfd11e81ffdeae3505 (diff)
Protect call to sleep, as it is not available everywhere.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@3899 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/comm')
-rw-r--r--src/comm/CactusDefaultComm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/comm/CactusDefaultComm.c b/src/comm/CactusDefaultComm.c
index 7644d159..71b1f5be 100644
--- a/src/comm/CactusDefaultComm.c
+++ b/src/comm/CactusDefaultComm.c
@@ -420,7 +420,11 @@ int CactusDefaultAbort (cGH *GH, int retval)
call CCTK_Abort() before that those messages wouldn't be seen. */
fflush (stdout);
fflush (stderr);
+
+#ifdef HAVE_UNISTD_H
sleep (5);
+#endif
+
CACTUS_MPI_ERROR (MPI_Abort (MPI_COMM_WORLD, retval));
}
#else