Re: [Patch] Fix build problem with system call in compile/compile.c

Pedro Alves
2015-01-07T19:01:26Z

On 01/07/2015 06:36 PM, Steve Ellcey wrote:

> I am not sure why we allow ourselves to ignore the return value. Maybe
> we shouldn't. Chen Gang submitted a different patch where the return
> value is checked. Should we use that instead?
>
> https://sourceware.org/ml/gdb-patches/2015-01/msg00011.html

Yes, I think so. Jan's WIP patch to use ftw/fts instead of "rm -rf" also
warns on fail. Meanwhile, I think Chen's patch is good.

Thanks,
Pedro Alves