summaryrefslogtreecommitdiff
path: root/misc/ecflow/files/patch-tools_ecflow__standalone.c
blob: 65046b4361e91da11b93efe5a2a11d2531ba1cd7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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 )