[PATCH] Always do locking when accessing streams

Rich Felker dalias@aerifal.cx
Fri Apr 19 06:04:00 GMT 2013


On Thu, Apr 18, 2013 at 11:36:34AM +0200, Andreas Schwab wrote:
>    /* If we can't signal ourselves and the abort instruction failed, exit.  */
> -  if (stage == 7)
> +  if (stage == 5)
>      {
>        ++stage;
>        _exit (127);

Unrelated to your patch, but while I'm noticing it, I should mention
that this final step is a bug. abort is required to cause abnormal
program termination. That can be achieved by raise(SIGKILL).

Note that in order for that to work correctly, the bug I just reported
in raise (#15368) needs to be fixed.

Rich



More information about the Libc-alpha mailing list