19512fe8ahl/*
29512fe8ahl * CDDL HEADER START
39512fe8ahl *
49512fe8ahl * The contents of this file are subject to the terms of the
59512fe8ahl * Common Development and Distribution License (the "License").
69512fe8ahl * You may not use this file except in compliance with the License.
79512fe8ahl *
89512fe8ahl * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
99512fe8ahl * or http://www.opensolaris.org/os/licensing.
109512fe8ahl * See the License for the specific language governing permissions
119512fe8ahl * and limitations under the License.
129512fe8ahl *
139512fe8ahl * When distributing Covered Code, include this CDDL HEADER in each
149512fe8ahl * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
159512fe8ahl * If applicable, add the following below this CDDL HEADER, with the
169512fe8ahl * fields enclosed by brackets "[]" replaced with your own identifying
179512fe8ahl * information: Portions Copyright [yyyy] [name of copyright owner]
189512fe8ahl *
199512fe8ahl * CDDL HEADER END
209512fe8ahl */
219512fe8ahl
229512fe8ahl/*
239512fe8ahl * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
249512fe8ahl * Use is subject to license terms.
259512fe8ahl */
269512fe8ahl
279512fe8ahl#pragma ident	"%Z%%M%	%I%	%E% SMI"
289512fe8ahl
299512fe8ahl#include <unistd.h>
309512fe8ahl#include <signal.h>
319512fe8ahl
329512fe8ahlint
339512fe8ahlmain(int argc, char **argv)
349512fe8ahl{
359512fe8ahl	sigset_t ss;
369512fe8ahl
379512fe8ahl	(void) sigemptyset(&ss);
389512fe8ahl	(void) sigaddset(&ss, SIGINT);
399512fe8ahl	(void) sigprocmask(SIG_BLOCK, &ss, NULL);
409512fe8ahl
419512fe8ahl	do {
429512fe8ahl		(void) getpid();
439512fe8ahl		(void) sigpending(&ss);
449512fe8ahl	} while (!sigismember(&ss, SIGINT));
459512fe8ahl
469512fe8ahl	return (0);
479512fe8ahl}
48