From: Neil H. <nh...@us...> - 2006-10-23 12:37:46
|
Update of /cvsroot/cscope/cscope/src In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv28866/src Modified Files: main.c Log Message: adding a fix for SF bug 1574354 Index: main.c =================================================================== RCS file: /cvsroot/cscope/cscope/src/main.c,v retrieving revision 1.42 retrieving revision 1.43 diff -C2 -r1.42 -r1.43 *** main.c 10 Oct 2006 11:42:17 -0000 1.42 --- main.c 23 Oct 2006 12:37:36 -0000 1.43 *************** *** 155,164 **** /* save the command name for messages */ 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 */ while (--argc > 0 && (*++argv)[0] == '-') { --- 155,159 ---- /* save the command name for messages */ argv0 = argv[0]; ! /* set the options */ while (--argc > 0 && (*++argv)[0] == '-') { *************** *** 405,408 **** --- 400,410 ---- signal(SIGPIPE, SIG_IGN);/* | command can cause pipe signal */ + #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 + /* initialize the curses display package */ initscr(); /* initialize the screen */ |