arc: clone: Recover PID correctly
commit25f4ae1de711b2001b4958d65e77b6dba222e7b5
authorAlexey Brodkin <Alexey.Brodkin@synopsys.com>
Fri, 29 Jul 2016 09:17:18 +0000 (29 12:17 +0300)
committerWaldemar Brodkorb <wbx@uclibc-ng.org>
Sun, 31 Jul 2016 10:50:54 +0000 (31 12:50 +0200)
tree223fae89584a3cfede3e2df707e0966be8398cce
parentae01de4d1d1e16e46c5180ba7fb081792081996a
arc: clone: Recover PID correctly

Caught by tst-getpid1 test from uClibc's test-suite.

It looks like original implementation was not correct.
The code in question is supposed to recover PID of the new
thread. And by no means that could happen with clone() syscall
while getpid() does exactly this.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Acked-by: Vineet Gupta <vgupta@synopsys.com>
Reported-by: Eugeniy Paltsev <paltsev@synopsys.com>
libc/sysdeps/linux/arc/clone.S