Changeset 144 for trunk/IPs/systemC/Environment/TTY/src/TTY.cpp
- Timestamp:
- Sep 28, 2010, 1:19:10 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/Environment/TTY/src/TTY.cpp
r82 r144 1 1 #include "../include/TTY.h" 2 #include <stdlib.h> 3 #include <stdio.h> 2 4 3 5 namespace environment { … … 40 42 // Childen -> transform in a xtty 41 43 close(0); // s 42 dup (canal_output.CanalPipe [0]); 44 if (dup (canal_output.CanalPipe [0]) == -1) 45 { 46 std::cerr << "<Tty> Error in dupplicate file descriptor." << std::endl; 47 exit (1); 48 }; 43 49 close(1); 44 50 execlp("xtty","xtty", param->name_tty [i].c_str() ,NULL); // devient un tty
Note: See TracChangeset
for help on using the changeset viewer.