projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make configure try to disable stack protector
[musl]
/
src
/
unistd
/
dup2.c
diff --git
a/src/unistd/dup2.c
b/src/unistd/dup2.c
index
9332544
..
87a0d44
100644
(file)
--- a/
src/unistd/dup2.c
+++ b/
src/unistd/dup2.c
@@
-1,7
+1,10
@@
#include <unistd.h>
#include <unistd.h>
+#include <errno.h>
#include "syscall.h"
int dup2(int old, int new)
{
#include "syscall.h"
int dup2(int old, int new)
{
- return __syscall_dup2(old, new);
+ int r;
+ while ((r=__syscall(SYS_dup2, old, new))==-EBUSY);
+ return __syscall_ret(r);
}
}