
int
cmd_trap(action,list,count)
char *action;		/* eval upon signal */
int *list;		/* list of sigs */
int count;		/* how many sigs */
{
	int i;

	for (i=0;i<count;i++,list++) {
		actions[*list] = action;
		signal(*list,sig_handler);
	}
}

void
init_trap()
{
	int i;

	for (i=0;i<NSIG;i++) actions[i] = 0;
}



