commit | 9f878c2fcab4e497d8b59f69dab74f092ad04deb | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Tue Feb 12 16:07:06 2013 -0800 |
committer | Elliott Hughes <enh@google.com> | Tue Feb 12 16:07:06 2013 -0800 |
tree | 627dca7534debb436f648cab80b9678db61bf8b9 | |
parent | 558a8b1d3b31300941af78232f2f7f4cb4e933b9 [diff] |
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