bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] xargs with large (or zero) max-procs


From: Eric Blake
Subject: Re: [PATCH] xargs with large (or zero) max-procs
Date: Sat, 05 Jan 2008 10:25:23 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Marc Aurele La France on 1/5/2008 10:24 AM:
|>> This is keyed on whether or not <sys/wait.h> #define's WNOHANG, but you
|>> might want to key off of the existence of waitpid(), using the
|>> automangle
|>> suite.  I am submitting this in its current form given that waitpid() is
|>> just about as old as wait(), older than wait3() and wait4() even, and
|>> that
|>> there is no point in WNOHANG without waitpid() or vice-versa.
|
|> I agree that waitpid is well-established.   Every bit of
|> autoconfiscation imposes a small extra maintenance burden.   Partly
|> for that reason, I decided to just assume the existence of both
|> waitpid() and WNOHANG.

Ultimately, if this is a real issue in practice, the solution would be a
gnulib module that provides waitpid replacements for lacking systems.  But
most likely, nobody actively ports to those old platforms any more.  Also,
gnulib already has a wait-process module, so I wonder if it would be
useful here.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHf72D84KuGfSFAYARAn6KAJ45QV5mlvDlBpq0ID4Y/HjqyELDZQCgmqyg
gJgDCfgR62W9a2qTx0mg3Vw=
=E7zb
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]