Changeset 25403

Show
Ignore:
Timestamp:
05/09/08 15:37:45 (3 days ago)
Author:
bonefish
Message:
The terminal is not supposed to send signals to the shell. That's done
by the tty. Now I also understand the BeOS work-around to ignore SIGINT
in bash I removed recently.
I suppose the signal code is still needed for BeOS. If not please remove
it.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • haiku/trunk/src/apps/terminal/Shell.cpp

    r25386 r25403  
    195195        winSize.ws_row = rows; 
    196196        winSize.ws_col = columns; 
     197#ifdef __HAIKU__ 
     198        if (ioctl(fFd, TIOCSWINSZ, &winSize) != 0) 
     199                return errno; 
     200        return B_OK; 
     201#else 
    197202        ioctl(fFd, TIOCSWINSZ, &winSize); 
    198203        return Signal(SIGWINCH); 
    199 
    200  
    201  
     204#endif 
     205
     206 
     207 
     208#ifndef __HAIKU__ 
    202209status_t 
    203210Shell::Signal(int signal) 
     
    205212        return send_signal(-fProcessID, signal); 
    206213} 
     214#endif 
    207215 
    208216 
  • haiku/trunk/src/apps/terminal/Shell.h

    r22100 r25403  
    3333 
    3434        status_t        UpdateWindowSize(int row, int columns); 
     35#ifndef __HAIKU__ 
    3536        status_t        Signal(int signal); 
     37#endif 
    3638 
    3739        status_t        GetAttr(struct termios &attr); 
  • haiku/trunk/src/apps/terminal/TermView.cpp

    r25392 r25403  
    14721472        currentMessage->FindInt32("raw_char", &rawChar); 
    14731473 
     1474#ifndef __HAIKU__ 
    14741475        // If bytes[0] equal intr character, 
    14751476        // send signal to shell process group. 
     
    14801481                        fShell->Signal(SIGINT); 
    14811482        } 
     1483#endif 
    14821484 
    14831485        // Terminal filters RET, ENTER, F1...F12, and ARROW key code.