projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use libc-internal malloc for pthread_atfork
[musl]
/
src
/
unistd
/
pause.c
diff --git
a/src/unistd/pause.c
b/src/unistd/pause.c
index
1472065
..
90bbf4c
100644
(file)
--- a/
src/unistd/pause.c
+++ b/
src/unistd/pause.c
@@
-1,12
+1,11
@@
#include <unistd.h>
#include "syscall.h"
#include <unistd.h>
#include "syscall.h"
-#include "libc.h"
int pause(void)
{
int pause(void)
{
- int r;
-
CANCELPT_BEGIN
;
- r = syscall0(__NR_pause);
-
CANCELPT_END
;
- return r;
+#ifdef SYS_pause
+
return syscall_cp(SYS_pause)
;
+#else
+
return syscall_cp(SYS_ppoll, 0, 0, 0, 0)
;
+#endif
}
}