mailing list of musl libc
 help / color / mirror / code / Atom feed
e25901710eb3b96d42aaf4cd0a8d29c62bb7814f blob 294 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
 
#include <unistd.h>
#include <signal.h>
#include "syscall.h"
#include "libc.h"

int pause(void)
{
#ifdef SYS_pause
	return syscall_cp(SYS_pause);
#else
	sigset_t mask;
	__syscall(SYS_rt_sigprocmask, SIG_BLOCK, 0, &mask, _NSIG/8);
	return syscall_cp(SYS_rt_sigsuspend, &mask, _NSIG/8);
#endif
}
debug log:

solving e259017 ...
found e259017 in https://inbox.vuxu.org/musl/20140527052625.GC507@brightrain.aerifal.cx/
found f7ed17d in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 f7ed17d16f0fdc481d1bc6d3df37c72eeb82989d	src/unistd/pause.c

applying [1/1] https://inbox.vuxu.org/musl/20140527052625.GC507@brightrain.aerifal.cx/
diff --git a/src/unistd/pause.c b/src/unistd/pause.c
index f7ed17d..e259017 100644

Checking patch src/unistd/pause.c...
Applied patch src/unistd/pause.c cleanly.

index at:
100644 e25901710eb3b96d42aaf4cd0a8d29c62bb7814f	src/unistd/pause.c

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).