version 1.18, 2002/07/15 17:20:36 |
version 1.19, 2003/06/12 22:30:23 |
|
|
void (*d_process)() = i_process; |
void (*d_process)() = i_process; |
|
|
|
|
int main(argc, argv) |
int |
|
main(int argc, char *argv[]) |
int argc; |
|
char *argv[]; |
|
|
|
{ |
{ |
int i; |
int i; |
int active_procs; |
int active_procs; |
|
|
* screen will get redrawn. |
* screen will get redrawn. |
*/ |
*/ |
|
|
static void reset_display() |
static void |
|
reset_display(void) |
{ |
{ |
d_loadave = i_loadave; |
d_loadave = i_loadave; |
d_procstates = i_procstates; |
d_procstates = i_procstates; |
|
|
* signal handlers |
* signal handlers |
*/ |
*/ |
|
|
void leave(unused) /* exit under normal conditions -- INT handler */ |
void |
|
leave(int unused) /* exit under normal conditions -- INT handler */ |
int unused; |
|
|
|
{ |
{ |
leaveflag = 1; |
leaveflag = 1; |
} |
} |
|
|
void tstop(i) /* SIGTSTP handler */ |
void |
|
tstop(int i) /* SIGTSTP handler */ |
int i; |
|
|
|
{ |
{ |
tstopflag = 1; |
tstopflag = 1; |
} |
} |
|
|
#ifdef SIGWINCH |
#ifdef SIGWINCH |
void winch(i) /* SIGWINCH handler */ |
void |
|
winch(int i) /* SIGWINCH handler */ |
int i; |
|
|
|
{ |
{ |
winchflag = 1; |
winchflag = 1; |
} |
} |
#endif |
#endif |
|
|
void quit(status) /* exit under duress */ |
void |
|
quit(int status) /* exit under duress */ |
int status; |
|
|
|
{ |
{ |
end_screen(); |
end_screen(); |
exit(status); |
exit(status); |
/*NOTREACHED*/ |
/*NOTREACHED*/ |
} |
} |
|
|
void onalrm(unused) /* SIGALRM handler */ |
void |
|
onalrm(int unused) /* SIGALRM handler */ |
int unused; |
|
|
|
{ |
{ |
/* this is only used in batch mode to break out of the pause() */ |
/* this is only used in batch mode to break out of the pause() */ |
/* return; */ |
/* return; */ |