Changeset 2785 for neercs/trunk/src/grab.c
- Timestamp:
- Aug 27, 2008, 11:19:02 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
neercs/trunk/src/grab.c
r2516 r2785 54 54 55 55 child = mytrace_fork(parent); 56 mytrace_write(parent, 1, "\x1b]0;\x07", 5); 57 mytrace_write(parent, 1, "\x1b[1000l", 7); 58 mytrace_write(parent, 1, "\x1b[?12l\x1b[?25h", 12); 59 mytrace_write(parent, 1, "\n[Process stolen by neercs]\n", 28); 60 /* FIXME Reset the term */ 61 mytrace_close(parent, 1); 62 63 mytrace_exit(parent, 0); 64 mytrace_detach(parent); 56 65 pid = mytrace_getpid(child); 57 66 … … 76 85 continue; 77 86 78 debug("found pty %d", i); 79 80 if(i == 2) 81 { 82 mytrace_write(parent, i, "\x1b]0;\x07", 5); 83 mytrace_write(parent, i, "\x1b[1000l", 7); 84 mytrace_write(parent, i, "\x1b[?12l\x1b[?25h", 12); 85 mytrace_write(parent, i, "\n[Process stolen by neercs]\n", 28); 86 } 87 debug("found pty %d for pid %d", i, pid); 87 88 88 89 ret = mytrace_close(child, i); … … 122 123 debug("pid %ld has now sid %d", pid, getsid(pid)); 123 124 124 mytrace_exit(parent, 0);125 mytrace_detach(parent);126 127 125 /* Reopen PTY file descriptors */ 128 126 for(i = 0; i <= 2; i++)
Note: See TracChangeset
for help on using the changeset viewer.