Changeset 2428 for neercs


Ignore:
Timestamp:
Jun 15, 2008, 7:10:19 PM (12 years ago)
Author:
Pascal Terjan
Message:
  • Remove code that was for the standalone test
File:
1 edited

Legend:

Unmodified
Added
Removed
  • neercs/trunk/src/grab.c

    r2426 r2428  
    259259{
    260260    struct termios t;
    261     struct termios orig_tios;
    262261    int i, fd = 0, mode, ret;
    263262    char tty[1024];
    264263    char fdstr[1024];
    265264    struct stat stat_buf;
    266 
    267     ioctl(0, TCGETS, &orig_tios);
    268265
    269266    snprintf(fdstr, sizeof(fdstr), "/proc/%d/fd/%d", getpid(), ptyfd);
     
    323320    kill(pid, SIGWINCH);
    324321
    325     close(0);
    326     close(1);
    327     close(2);
    328     ioctl(0, TCSETS, &orig_tios);
    329 
    330322    ptrace(PTRACE_DETACH, pid, 0, 0);
    331323
Note: See TracChangeset for help on using the changeset viewer.