fis-gtm/sr_unix/ctrlc_handler.c

32 lines
748 B
C

/****************************************************************
* *
* Copyright 2001 Sanchez Computer Associates, Inc. *
* *
* This source code contains the intellectual property *
* of its copyright holder(s), and is made available *
* under a license. If you do not know the terms of *
* the license, please stop and do not read further. *
* *
****************************************************************/
#include "mdef.h"
#include <errno.h>
#include <signal.h>
#include "ctrlc_handler.h"
#include "std_dev_outbndset.h"
void ctrlc_handler(int sig)
{
int4 ob_char;
int save_errno;
if (sig == SIGINT)
{
save_errno = errno;
ob_char = 3;
std_dev_outbndset(ob_char);
errno = save_errno;
}
}