Changeset 25411

Show
Ignore:
Timestamp:
05/10/08 06:22:18 (6 days ago)
Author:
mmu_man
Message:
Indeed we don't need this signal hack for BeOS, we just need to tell it the pgid. That reduces the number of things to remove later ;)
Files:

Legend:

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

    r25403 r25411  
    195195        winSize.ws_row = rows; 
    196196        winSize.ws_col = columns; 
    197 #ifdef __HAIKU__ 
    198197        if (ioctl(fFd, TIOCSWINSZ, &winSize) != 0) 
    199198                return errno; 
    200199        return B_OK; 
    201 #else 
    202         ioctl(fFd, TIOCSWINSZ, &winSize); 
    203         return Signal(SIGWINCH); 
    204 #endif 
    205 
    206  
    207  
    208 #ifndef __HAIKU__ 
    209 status_t 
    210 Shell::Signal(int signal) 
    211 
    212         return send_signal(-fProcessID, signal); 
    213 
    214 #endif 
     200
    215201 
    216202 
     
    497483                tcsetpgrp(0, getpgrp()); 
    498484                        // set this process group ID as the controlling terminal 
     485#ifndef __HAIKU__ 
     486                ioctl(0, 'pgid', getpid()); 
     487#endif 
    499488 
    500489                /* pty open and set termios successful. */ 
  • haiku/trunk/src/apps/terminal/Shell.h

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

    r25403 r25411  
    14721472        currentMessage->FindInt32("raw_char", &rawChar); 
    14731473 
    1474 #ifndef __HAIKU__ 
    1475         // If bytes[0] equal intr character, 
    1476         // send signal to shell process group. 
    1477         struct termios tio; 
    1478         fShell->GetAttr(tio); 
    1479         if (*bytes == tio.c_cc[VINTR]) { 
    1480                 if (tio.c_lflag & ISIG) 
    1481                         fShell->Signal(SIGINT); 
    1482         } 
    1483 #endif 
    1484  
    14851474        // Terminal filters RET, ENTER, F1...F12, and ARROW key code. 
    14861475        // TODO: Cleanup