xref: /haiku/src/system/libroot/posix/unistd/pause.c (revision f3bb653937bb3a05a8d01daa506b27fc8a4998b0)
1 /*
2  * Copyright (c) 2005, Haiku Project. All rights reserved.
3  * Distributed under the terms of the MIT license.
4  *
5  * Author(s):
6  *		Jérôme Duval
7  */
8 
9 
10 #include <syscalls.h>
11 
12 #include <errno.h>
13 #include <signal.h>
14 
15 
16 int
17 pause(void)
18 {
19 	sigset_t mask;
20 	sigemptyset(&mask);
21 
22 	errno = _kern_sigsuspend(&mask);
23 	return -1;
24 }
25 
26