GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: lib/libc/gen/pause.c Lines: 0 2 0.0 %
Date: 2017-11-13 Branches: 0 2 0.0 %

Line Branch Exec Source
1
/*	$OpenBSD: pause.c,v 1.6 2005/08/08 08:05:34 espie Exp $	*/
2
3
/*
4
 * Written by Todd C. Miller <Todd.Miller@courtesan.com>
5
 * Public domain.
6
 */
7
8
#include <signal.h>
9
#include <unistd.h>
10
11
/*
12
 * Backwards compatible pause(3).
13
 */
14
int
15
pause(void)
16
{
17
	sigset_t mask;
18
19
	return (sigprocmask(SIG_BLOCK, NULL, &mask) ? -1 : sigsuspend(&mask));
20
}