httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chuck Murcko <ch...@telebase.com>
Subject Re: 1.0.2++
Date Sat, 03 Feb 1996 00:45:21 GMT
Rob Hartill liltingly intones:
> 
> 76.posix_wait4process.patch
> 
> + #ifndef NEED_WAITPID
> +   /* Pick up all defunct processes */
> +   for (p = procs; p; p = p->next) {
> +     if (waitpid (p->pid, (int *) 0, WNOHANG) == 0) {
>                            ^^^^^^^^^
> does this need to be explicitly set to "NULL" ?
> 
> +       p->kill_how = kill_never;
> +     }
> +   }
> + #endif
> + 
> 
Shouldn't (and doesn't) matter; int * is the proper way. This is the
culprit, though. Have I just discovered that IIRIX and BSDI are non-
POSIX conformant signal behavior? Or should the kill_never be just_wait?
Doing that reaps 'em fine in the waitpid() a few lines below this.

chuck
Chuck Murcko	Telebase Systems, Inc.	Wayne PA	chuck@telebase.com
And now, on a lighter note:
Vail's Second Axiom:
	The amount of work to be done increases in proportion to the
amount of work already completed.

Mime
View raw message