version 1.1.1.1.2.2, 1997/11/10 19:23:04 |
version 1.1.1.1.2.3, 1997/11/21 12:09:32 |
|
|
/* main sysinst program. */ |
/* main sysinst program. */ |
|
|
#include <stdio.h> |
#include <stdio.h> |
|
#include <signal.h> |
#include <curses.h> |
#include <curses.h> |
#include <unistd.h> |
#include <unistd.h> |
|
|
|
|
|
|
int main(int argc, char **argv); |
int main(int argc, char **argv); |
void usage (void); |
void usage (void); |
|
void inthandler (int); |
|
|
int main(int argc, char **argv) |
int main(int argc, char **argv) |
{ |
{ |
Line 89 int main(int argc, char **argv) |
|
Line 91 int main(int argc, char **argv) |
|
*r = 0; |
*r = 0; |
} |
} |
|
|
|
/* Watch for SIGINT and clean up */ |
|
(void) signal(SIGINT, inthandler); |
|
|
/* Menu processing */ |
/* Menu processing */ |
process_menu (MENU_netbsd); |
process_menu (MENU_netbsd); |
|
|
|
|
(void)fprintf (stderr, msg_string(MSG_usage)); |
(void)fprintf (stderr, msg_string(MSG_usage)); |
exit(1); |
exit(1); |
} |
} |
|
|
|
/* ARGSUSED */ |
|
void |
|
inthandler(int notused) |
|
{ |
|
endwin(); |
|
fprintf(stderr, "\n\n sysinst terminated.\n"); |
|
exit(1); |
|
} |