race condition fix: block all signals before decrementing thread count
[musl] / src / thread / x86_64 / __unmapself.s
1 /* Copyright 2011 Nicholas J. Kain, licensed GNU LGPL 2.1 or later */
2 .text
3 .global __unmapself
4 .type   __unmapself,%function
5 __unmapself:
6         movl $11,%eax   /* __NR_munmap */
7         syscall         /* munmap(arg2,arg3) */
8         xor %rdi,%rdi   /* exit() args: always return success */
9         movl $60,%eax   /* __NR_exit */
10         syscall         /* exit(0) */
11 .size __unmapself,.-__unmapself