]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
ls: port to NonStop (Bug#9076)
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 16 Jul 2011 00:39:28 +0000 (17:39 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 16 Jul 2011 19:10:44 +0000 (12:10 -0700)
* src/ls.c (SA_RESTART): Define to 0 if not defined.

src/ls.c

index c604e14dad8324199779d4a70c2f012865963f11..680a7c315898da8f0dac06d3bf8d25e7d659e5ed 100644 (file)
--- a/src/ls.c
+++ b/src/ls.c
 # endif
 #endif
 
+/* NonStop circa 2011 lacks both SA_RESTART and siginterrupt, so don't
+   restart syscalls after a signal handler fires.  This may cause
+   colors to get messed up on the screen if 'ls' is interrupted, but
+   that's the best we can do on such a platform.  */
+#ifndef SA_RESTART
+# define SA_RESTART 0
+#endif
+
 #include "system.h"
 #include <fnmatch.h>