xref: /csrg-svn/lib/libc/gen/pause.c (revision 46597)
121330Sdist /*
238473Sbostic  * Copyright (c) 1983 The Regents of the University of California.
338473Sbostic  * All rights reserved.
438473Sbostic  *
542625Sbostic  * %sccs.include.redist.c%
621330Sdist  */
712942Ssam 
826518Sdonn #if defined(LIBC_SCCS) && !defined(lint)
9*46597Sdonn static char sccsid[] = "@(#)pause.c	5.7 (Berkeley) 02/23/91";
1038473Sbostic #endif /* LIBC_SCCS and not lint */
1121330Sdist 
12*46597Sdonn #include <signal.h>
13*46597Sdonn #include <unistd.h>
14*46597Sdonn 
1512942Ssam /*
1612942Ssam  * Backwards compatible pause.
1712942Ssam  */
18*46597Sdonn int
1912942Ssam pause()
2012942Ssam {
2112942Ssam 
22*46597Sdonn 	return sigpause(sigblock(0L));
2312942Ssam }
24