clean up when finished.
This commit is contained in:
parent
98cd2746cf
commit
b4a659b6cf
21 changed files with 42 additions and 83 deletions
|
|
@ -1,9 +1,6 @@
|
|||
#include <u.h>
|
||||
#include <libc.h>
|
||||
#if 0
|
||||
#include <sys/wait.h>
|
||||
#endif
|
||||
#include <signal.h>
|
||||
#include <libc.h>
|
||||
#include "term.h"
|
||||
|
||||
int
|
||||
|
|
@ -37,6 +34,8 @@ rcstart(int argc, char **argv, int *pfd, int *tfd)
|
|||
dup(sfd, 1);
|
||||
dup(sfd, 2);
|
||||
system("stty tabs -onlcr onocr icanon echo erase '^h' intr '^?'");
|
||||
if(noecho)
|
||||
system("stty -echo");
|
||||
for(i=3; i<100; i++)
|
||||
close(i);
|
||||
execvp(argv[0], argv);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue