[Toybox] [PATCH] ps/top: auto-size the PID/PPID fields.

Rob Landley rob at landley.net
Sun Feb 23 00:45:49 PST 2020


On 2/23/20 12:30 AM, enh wrote:
> On Sat, Feb 22, 2020, 20:01 Rob Landley <rob at landley.net
> <mailto:rob at landley.net>> wrote:
> 
>     On 2/22/20 5:16 PM, enh via Toybox wrote:
>     > While most Android devices still have low pid_max values,
> 
>     as does devuan (32768)
> 
>     > my laptop and
>     > desktop are using ever higher values. Auto-size the PID and PPID fields
>     > based on the system's current configuration rather than hard-coding
>     > values.
> 
>     Ew.
> 
>     Out of curiosity, what is your pid_max current set to?
> 
> My laptop's at 256Ki. 

Can we just bump it up by one for now and wait for it to break again? (That
gives us almost two more doublings; if the second ~doubling is "999999" we're
still good...)

The magic value plus probe seems... inelegant.

Rob



More information about the Toybox mailing list