Patch applied and extended to other programs
which fork/exec external commands.
Thanks.
On Wed, May 26, 2010 at 12:33 AM, Corey Ashford
wrote:
> Fix a bug with processing the options to the program
> being measured were consumed as options to task itself.
>
> For example:
>
> task -e PM_RUN_CYC
Fix a bug with processing the options to the program
being measured were consumed as options to task itself.
For example:
task -e PM_RUN_CYC /bin/ls -l
was being interpreted by getopt() as:
task -e PM_RUN_CYC -l /bin/ls
and task didn't understand the -l option.
According to the getopt() man p