[BusyBox] [patch] ps w, take two

Vladimir N. Oleynik dzo at simtreas.ru
Tue Feb 8 16:34:51 UTC 2005


Bernhard,

>>>+config CONFIG_PS_FEATURE_WIDEPIPE
>>>+	bool "  Default to wide on descriptors not refering to tty devices"
>>>+	default n
>>>+	depends on CONFIG_PS
>>>+	help
>>>+	  Automatically use wide format if output goes to a descriptor
>>>+          that does not refer to a terminal device.
>>
>>2) It is better to not do it in general.
> 
> why? ps does exactly this.

There can be my system documentation and is obsolete,
but I have not found such special option at the GNU ps utility.

> +#ifdef CONFIG_FEATURE_PS_WIDE
> +	/* handle argument w */
> +	/* bb_getopt_ulflags(argc, argv, "w") would force a leading dash */

And also for this function the counter of usage of options is not supported. ;-)

> -		free(p->cmd);
> +#ifdef CONFIG_FEATURE_CLEAN_UP
> +		if (p->cmd)
> +			free(p->cmd);
> +#endif

This moment especially has liked me. ;-)


--w
vodz



More information about the busybox mailing list