Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 243754
Collapse All | Expand All

(-)cscope-15.6.orig/src/main.c (-6 / +7 lines)
Lines 153-164 Link Here
153
    yyout = stdout;
153
    yyout = stdout;
154
    /* save the command name for messages */
154
    /* save the command name for messages */
155
    argv0 = argv[0];
155
    argv0 = argv[0];
156
#if defined(KEY_RESIZE) && !defined(__DJGPP__)
156
157
    winch_action.sa_sigaction = sigwinch_handler;
158
    sigemptyset(&winch_action.sa_mask);
159
    winch_action.sa_flags = SA_SIGINFO;
160
    sigaction(SIGWINCH,&winch_action,NULL);
161
#endif
162
    /* set the options */
157
    /* set the options */
163
    while (--argc > 0 && (*++argv)[0] == '-') {
158
    while (--argc > 0 && (*++argv)[0] == '-') {
164
	/* HBB 20030814: add GNU-style --help and --version options */
159
	/* HBB 20030814: add GNU-style --help and --version options */
Lines 400-405 Link Here
400
    }
395
    }
401
396
402
    if (linemode == NO) {
397
    if (linemode == NO) {
398
#if defined(KEY_RESIZE) && !defined(__DJGPP__)
399
    winch_action.sa_sigaction = sigwinch_handler;
400
    sigemptyset(&winch_action.sa_mask);
401
    winch_action.sa_flags = SA_SIGINFO;
402
    sigaction(SIGWINCH,&winch_action,NULL);
403
#endif
403
	signal(SIGINT, SIG_IGN);	/* ignore interrupts */
404
	signal(SIGINT, SIG_IGN);	/* ignore interrupts */
404
	signal(SIGPIPE, SIG_IGN);/* | command can cause pipe signal */
405
	signal(SIGPIPE, SIG_IGN);/* | command can cause pipe signal */
405
406

Return to bug 243754