File: setsid.patch

package info (click to toggle)
ecflow 5.15.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 51,868 kB
  • sloc: cpp: 269,341; python: 22,756; sh: 3,609; perl: 770; xml: 333; f90: 204; ansic: 141; makefile: 70
file content (16 lines) | stat: -rw-r--r-- 803 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Add FreeBSD to ifdef check for setsid. Fixes FTBFS on Debian kFreeBSD
Author: Alastair McKinstry <mckinstry@debian.org>
Last-Updated: 2018-11-20
Forwarded: no

--- a/tools/ecflow_standalone.c
+++ b/tools/ecflow_standalone.c
@@ -188,7 +188,7 @@
      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(__APPLE__) || defined(__MACH__) || defined(hpux) || defined(solaris) || defined(SGI) || defined(SVR4) || defined(AIX) || defined(SYG) || defined(alpha) || defined(__FreeBSD__) 
   if( setsid() == -1 )
 #else
   if( setsid(0) == -1 )