|
|
yyout = stdout; | yyout = stdout; |
/* save the command name for messages */ | /* save the command name for messages */ |
argv0 = argv[0]; | argv0 = argv[0]; |
#if defined(KEY_RESIZE) && !defined(__DJGPP__) |
|
winch_action.sa_sigaction = sigwinch_handler; |
|
sigemptyset(&winch_action.sa_mask); |
|
winch_action.sa_flags = SA_SIGINFO; |
|
sigaction(SIGWINCH,&winch_action,NULL); |
|
#endif |
|
/* set the options */ | /* set the options */ |
while (--argc > 0 && (*++argv)[0] == '-') { | while (--argc > 0 && (*++argv)[0] == '-') { |
/* HBB 20030814: add GNU-style --help and --version options */ | /* HBB 20030814: add GNU-style --help and --version options */ |
|
|
} | } |
| |
if (linemode == NO) { | if (linemode == NO) { |
|
#if defined(KEY_RESIZE) && !defined(__DJGPP__) |
|
winch_action.sa_sigaction = sigwinch_handler; |
|
sigemptyset(&winch_action.sa_mask); |
|
winch_action.sa_flags = SA_SIGINFO; |
|
sigaction(SIGWINCH,&winch_action,NULL); |
|
#endif |
signal(SIGINT, SIG_IGN); /* ignore interrupts */ | signal(SIGINT, SIG_IGN); /* ignore interrupts */ |
signal(SIGPIPE, SIG_IGN);/* | command can cause pipe signal */ | signal(SIGPIPE, SIG_IGN);/* | command can cause pipe signal */ |
| |