mailing list of musl libc
 help / color / mirror / code / Atom feed
01e304be9de4b94aea58c80a81b1c6e329947668 blob 393 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
 
#include <stdlib.h>
#include "futex.h"
#include "syscall.h"
#include "atomic.h"
#include "libc.h"

static void dummy() { }
weak_alias(dummy, __funcs_on_quick_exit);

_Noreturn void quick_exit(int code)
{
	static int lock;
	while (a_swap(&lock, 1))
#ifdef SYS_pause
		__syscall(SYS_pause);
#else
		__syscall(SYS_futex, &lock, FUTEX_WAIT, 1, 0);
#endif
	__funcs_on_quick_exit();
	_Exit(code);
}
debug log:

solving 01e304b ...
found 01e304b in https://inbox.vuxu.org/musl/20140527052625.GC507@brightrain.aerifal.cx/
found 1175d80 in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 1175d80cc49d3c8395101f6712726676ccf636e2	src/exit/quick_exit.c

applying [1/1] https://inbox.vuxu.org/musl/20140527052625.GC507@brightrain.aerifal.cx/
diff --git a/src/exit/quick_exit.c b/src/exit/quick_exit.c
index 1175d80..01e304b 100644

Checking patch src/exit/quick_exit.c...
Applied patch src/exit/quick_exit.c cleanly.

index at:
100644 01e304be9de4b94aea58c80a81b1c6e329947668	src/exit/quick_exit.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).