summaryrefslogtreecommitdiff
path: root/misc/ecflow/files/patch-tools_ecflow__standalone.c
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2022-08-25 12:19:35 -0700
committerYuri Victorovich <yuri@FreeBSD.org>2022-08-25 12:20:25 -0700
commit370336ba99175ed10a0e65b92819e54303c36346 (patch)
treec6235cc32b9ff6be7aa6c9d7027530e797fe1517 /misc/ecflow/files/patch-tools_ecflow__standalone.c
parentmisc/elki: Unbreak by switching to Java 17 (diff)
misc/ecflow: New port: Workflow package that enables users to run a large number of programs
Diffstat (limited to 'misc/ecflow/files/patch-tools_ecflow__standalone.c')
-rw-r--r--misc/ecflow/files/patch-tools_ecflow__standalone.c11
1 files changed, 11 insertions, 0 deletions
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 )