mirror of
https://git.freebsd.org/ports.git
synced 2025-05-14 00:01:52 -04:00
Original site is gone but code is still available on github. Changed WWW to point to github and also consumes source code from there. I've compared content of current github code and original tarball and it was just missing one function from xgetloadavg.c, now added using patch. While here, re-generate patches. PR: 270345 Reported by: diizzy
24 lines
521 B
C
24 lines
521 B
C
--- xinetd/child.c.orig 2012-05-09 16:03:17 UTC
|
|
+++ xinetd/child.c
|
|
@@ -168,7 +168,8 @@ void exec_server( const struct server *serp )
|
|
}
|
|
#endif
|
|
|
|
- (void) Sclose( descriptor ) ;
|
|
+ if ( descriptor > MAX_PASS_FD )
|
|
+ (void) Sclose( descriptor ) ;
|
|
|
|
#ifndef solaris
|
|
#if !defined(HAVE_SETSID)
|
|
@@ -320,11 +321,6 @@ void child_process( struct server *serp )
|
|
}
|
|
signals_pending[0] = -1;
|
|
signals_pending[1] = -1;
|
|
-
|
|
- Sclose(0);
|
|
- Sclose(1);
|
|
- Sclose(2);
|
|
-
|
|
|
|
#ifdef DEBUG_SERVER
|
|
if ( debug.on )
|