From 370336ba99175ed10a0e65b92819e54303c36346 Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Thu, 25 Aug 2022 12:19:35 -0700 Subject: misc/ecflow: New port: Workflow package that enables users to run a large number of programs --- misc/ecflow/files/patch-tools_ecflow__standalone.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 misc/ecflow/files/patch-tools_ecflow__standalone.c (limited to 'misc/ecflow/files/patch-tools_ecflow__standalone.c') diff --git a/misc/ecflow/files/patch-tools_ecflow__standalone.c b/misc/ecflow/files/patch-tools_ecflow__standalone.c new file mode 100644 index 000000000000..65046b4361e9 --- /dev/null +++ b/misc/ecflow/files/patch-tools_ecflow__standalone.c @@ -0,0 +1,11 @@ +--- tools/ecflow_standalone.c.orig 2022-08-25 05:28:39 UTC ++++ tools/ecflow_standalone.c +@@ -183,7 +183,7 @@ int main(argc,argv) int argc; char **argv; + for (n=3; n<65535 ;n++) fclose(n); */ + + /* create a new session from the child process */ +-#if defined(linux) || defined(__APPLE__) || defined(__MACH__) || defined(hpux) || defined(solaris) || defined(SGI) || defined(SVR4) || defined(AIX) || defined(SYG) || defined(alpha) ++#if defined(linux) || defined(__FreeBSD__) || defined(__APPLE__) || defined(__MACH__) || defined(hpux) || defined(solaris) || defined(SGI) || defined(SVR4) || defined(AIX) || defined(SYG) || defined(alpha) + if( setsid() == -1 ) + #else + if( setsid(0) == -1 ) -- cgit v1.2.3