httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject Re: New compile warning this AM
Date Sat, 21 Mar 1998 02:18:23 GMT


On Fri, 20 Mar 1998, Marc Slemko wrote:

> On Fri, 20 Mar 1998, Rodent of Unusual Size wrote:
> 
> > We've always treated getpid() as returning an unsigned long, haven't
> > we?  In which case the cast is changing nothing for the worse - so
> 
> No, we always treat it as whatever the heck we feel like at the moment,
> often int which could be more bogus.

int is less bogus than unsigned -- consider kill(), POSIX semantics, and
negative numbers -- they refer to process groups.  Thus pid_t is most
likely a signed quantity on recent systems.

Dean


Mime
View raw message