Modern BSDs don't need union wait
We have pid_t wait3(int *status, int options, struct rusage *rusage); on FreeBSD and we don't need (union wait) handling. Another good candidate for one #ifdef from imake templates. We have already OPT_BSD_WAIT in ToolTalk's tt_options.h
This commit is contained in:
committed by
Jon Trulson
parent
a35975a334
commit
ce4004f86b
@@ -86,7 +86,7 @@ static char *util_locale ;
|
||||
|
||||
static pid_t gtob_pid = 0;
|
||||
static pid_t btop_pid = 0;
|
||||
#if defined( SVR4 ) || defined( SYSV ) || defined(__osf__)
|
||||
#if defined( SVR4 ) || defined( SYSV ) || defined(__osf__) || defined(__FreeBSD__)
|
||||
static int chld_stat ;
|
||||
#else
|
||||
static union wait chld_stat ;
|
||||
@@ -397,7 +397,7 @@ char *argv[];
|
||||
#else
|
||||
fclose( WriteSnf.output );
|
||||
WaitID( btop_pid, chld_stat ) ;
|
||||
#if !defined( SVR4 ) && !defined( SYSV ) &&!defined(__osf__)
|
||||
#if !defined( SVR4 ) && !defined( SYSV ) &&!defined(__osf__) && !defined(__FreeBSD__)
|
||||
if ( !WIFEXITED(chld_stat) ) {
|
||||
#else
|
||||
if ( ! ( WIFEXITED(chld_stat) && !WEXITSTATUS(chld_stat) ) ) {
|
||||
|
||||
Reference in New Issue
Block a user