segfaults

Bernard Helyer b.helyer at gmail.com
Mon May 3 14:55:37 PDT 2010


On 04/05/10 09:49, Steven Schveighoffer wrote:
> On Mon, 03 May 2010 17:25:30 -0400, Bernard Helyer <b.helyer at gmail.com>
> wrote:
>>
>> I believe his problem is that the return code of the caller indicates
>> success.
>
> Could it be perhaps that it can't possibly get at that status? Remember,
> system runs /bin/sh -c, so all you can get as status is the return code
> of /bin/sh (which didn't segfault).
>
> -Steve

sh -c returns failure if the specified executable segfaults.


More information about the Digitalmars-d-learn mailing list