On Mon Oct 18, 2004 at 11:06:34 +1000, Michael Kraus wrote:
>G'day...
>
>Whilst this discussion is pretty great - I would like to note that the
>practical purpose of knowing the size of a PID is so that I can store
>the current processes' PID in an MySQL database, and the process is a
>Perl script.
>
>Based on the discussion so far, I'm making a pretty safe bet that a
>MEDIUMINT value (2^24) unsigned (0 - 16,777,215) will be more than
>sufficient. I don't know of a /running/ process that could have a
>negative value for its PID. (Any reasons why this wouldn't be
>sufficient?)
>

Why not just use an int (2^32). It's storage requirement are going to
be no different to those required by (2^24) anyway. Internally 2^24 are
going to be implemented as int anyway. (Assuming the MySQL developers 
weren't on crack.)

Benno
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to