summaryrefslogtreecommitdiff
path: root/misc/ecflow/files/patch-tools_ecflow__standalone.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/ecflow/files/patch-tools_ecflow__standalone.c')
-rw-r--r--misc/ecflow/files/patch-tools_ecflow__standalone.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/misc/ecflow/files/patch-tools_ecflow__standalone.c b/misc/ecflow/files/patch-tools_ecflow__standalone.c
index 65046b4361e9..105c3f053894 100644
--- a/misc/ecflow/files/patch-tools_ecflow__standalone.c
+++ b/misc/ecflow/files/patch-tools_ecflow__standalone.c
@@ -1,11 +1,11 @@
---- tools/ecflow_standalone.c.orig 2022-08-25 05:28:39 UTC
+--- tools/ecflow_standalone.c.orig 2024-06-19 10:20:26 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); */
+@@ -85,7 +85,7 @@ pid_t do_setsid(void) {
+ }
- /* 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 )
+ pid_t do_setsid(void) {
+-#if defined(linux) || defined(__APPLE__) || defined(__MACH__) || defined(hpux) || defined(solaris) || defined(SGI) || \
++#if defined(linux) || defined(__FreeBSD__) || defined(__APPLE__) || defined(__MACH__) || defined(hpux) || defined(solaris) || defined(SGI) || \
+ defined(SVR4) || defined(AIX) || defined(SYG) || defined(alpha) || defined(__NVCOMPILER)
+ return setsid();
#else
- if( setsid(0) == -1 )