summaryrefslogtreecommitdiffstats
path: root/tools/h5ls.c
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2000-11-15 21:01:47 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2000-11-15 21:01:47 (GMT)
commite89c46e6b9cee555e72d6c8fe4e9be9d3dfe6381 (patch)
tree7f03a1f0eca0b8f9e169c8efd36f811fd0f878de /tools/h5ls.c
parent3fe3fde6f47037ace71cee5d6740a1da8e95a9da (diff)
downloadhdf5-e89c46e6b9cee555e72d6c8fe4e9be9d3dfe6381.zip
hdf5-e89c46e6b9cee555e72d6c8fe4e9be9d3dfe6381.tar.gz
hdf5-e89c46e6b9cee555e72d6c8fe4e9be9d3dfe6381.tar.bz2
[svn-r2938] Purpose:
pathc Description: TFLOPS coredumped on h5ls because when h5ls calls ioctl(TIOCGWINSZ), the ioctl() routine coredumped inside. Solution: It is likely that TFLOPS does not support window-size in the compute nodes. Still, it should not coredump. Bypass it for TFLOPS for now. Platforms tested: TFLOPS & modi4 (-64)
Diffstat (limited to 'tools/h5ls.c')
-rw-r--r--tools/h5ls.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/h5ls.c b/tools/h5ls.c
index cfeba7a..ebb5115 100644
--- a/tools/h5ls.c
+++ b/tools/h5ls.c
@@ -1878,6 +1878,8 @@ get_width(void)
width = w[0];
}
#elif defined(H5_HAVE_TIOCGWINSZ) && defined(H5_HAVE_IOCTL)
+#ifndef __PUMAGON__
+/* the ioctl() call coredump on TFLOPS. Turn it off for now. */
{
/* Unix with ioctl(TIOCGWINSZ) */
struct winsize w;
@@ -1885,6 +1887,7 @@ get_width(void)
width = w.ws_col;
}
}
+#endif
#elif defined(H5_HAVE_TIOCGETD) && defined(H5_HAVE_IOCTL)
{
/* Unix with ioctl(TIOCGETD) */