xref: /haiku/src/system/libroot/posix/unistd/pause.c (revision 3cb015b1ee509d69c643506e8ff573808c86dcfc)
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