xref: /csrg-svn/lib/libc/gen/pause.c (revision 61111)
121330Sdist /*
2*61111Sbostic  * Copyright (c) 1983, 1993
3*61111Sbostic  *	The Regents of the University of California.  All rights reserved.
438473Sbostic  *
542625Sbostic  * %sccs.include.redist.c%
621330Sdist  */
712942Ssam 
826518Sdonn #if defined(LIBC_SCCS) && !defined(lint)
9*61111Sbostic static char sccsid[] = "@(#)pause.c	8.1 (Berkeley) 06/04/93";
1038473Sbostic #endif /* LIBC_SCCS and not lint */
1121330Sdist 
1246597Sdonn #include <signal.h>
1346597Sdonn #include <unistd.h>
1446597Sdonn 
1512942Ssam /*
1612942Ssam  * Backwards compatible pause.
1712942Ssam  */
1846597Sdonn int
pause()1912942Ssam pause()
2012942Ssam {
2112942Ssam 
2246597Sdonn 	return sigpause(sigblock(0L));
2312942Ssam }
24