static char sccsid
[] = "@(#)main.c 4.3 4/1/82";
* adb - main command loop and error/interrupt handling
char *Ipath
= "/usr/lib/adb";
if (eqstr("-w", argv
[1])) {
wtflag
= 2; /* suitable for open() */
if (eqstr("-k", argv
[1])) {
if (argv
[1][0] == '-' && argv
[1][1] == 'I') {
setsym(); setcor(); setvar();
if ((sigint
=signal(SIGINT
,SIG_IGN
)) != SIG_IGN
) {
sigqit
= signal(SIGQUIT
, SIG_IGN
);
iclose(-1, 0); eof
=0; reset();
* If there has been an error or a fault, take the error.
* An error occurred; save the message for later printing,
* close open files, and reset to main command loop.
* An interrupt occurred; reset the interrupt
* catch, seek to the end of the current file
* and remember that there was a fault.