Changeset 2428 for neercs/trunk/src
- Timestamp:
- Jun 15, 2008, 7:10:19 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
neercs/trunk/src/grab.c
r2426 r2428 259 259 { 260 260 struct termios t; 261 struct termios orig_tios;262 261 int i, fd = 0, mode, ret; 263 262 char tty[1024]; 264 263 char fdstr[1024]; 265 264 struct stat stat_buf; 266 267 ioctl(0, TCGETS, &orig_tios);268 265 269 266 snprintf(fdstr, sizeof(fdstr), "/proc/%d/fd/%d", getpid(), ptyfd); … … 323 320 kill(pid, SIGWINCH); 324 321 325 close(0);326 close(1);327 close(2);328 ioctl(0, TCSETS, &orig_tios);329 330 322 ptrace(PTRACE_DETACH, pid, 0, 0); 331 323
Note: See TracChangeset
for help on using the changeset viewer.