fix for task shell failure on linux

This commit is contained in:
Edoardo Apra 2006-02-20 18:21:10 +00:00
parent 45265e79ce
commit 86a8c86ab1

View file

@ -0,0 +1,20 @@
--- util_system.c 2005-01-06 17:19:40.000000000 -0800
+++ /home/edo/nwchem/src/util/util_system.c 2006-02-15 10:32:22.000000000 -0800
@@ -16,7 +16,7 @@
#ifdef WIN32
#include "typesf2c.h"
#endif
-#if (defined (LINUX) || defined (DECOSF)) && !defined(__x86_64__)
+#if defined (DECOSF)
#define __USE_BSD
#include <signal.h>
#undef __USE_BSD
@@ -48,7 +48,7 @@
if (!fortchar_to_string(input, lin, in, sizeof(in)))
ga_error("util_system: fortchar_to_string failed for in",0);
-#if (defined(LINUX) || defined(DECOSF)) && !defined(__x86_64__)
+#if defined(DECOSF)
Siginit = signal(SIGCHLD,SIG_IGN);
i = system(in);
Siginit = signal(SIGCHLD,Siginit);