OSDN Git Service

Really set errno if __pthread_clone fails.
authorElliott Hughes <enh@google.com>
Wed, 13 Feb 2013 00:07:06 +0000 (16:07 -0800)
committerElliott Hughes <enh@google.com>
Wed, 13 Feb 2013 00:07:06 +0000 (16:07 -0800)
commit9f878c2fcab4e497d8b59f69dab74f092ad04deb
tree627dca7534debb436f648cab80b9678db61bf8b9
parent558a8b1d3b31300941af78232f2f7f4cb4e933b9
Really set errno if __pthread_clone fails.

If r0 == 0, we're the child. If r0 > 0, we're the parent.
Otherwise set errno.

The __bionic_clone code I copy & pasted was wrong. This patch
fixes both.

Bug: 3461078
Change-Id: Ibb7d6cc7e54e666841f2f0dc59a141a0b31982e4
libc/arch-arm/bionic/clone.S