git://git.onelab.eu
/
vsys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
97bb620
)
removed timeout which caused vsyssh to spin in an infinite loop
author
Sapan Bhatia
<sapanb@cs.princeton.edu>
Fri, 29 Feb 2008 20:28:01 +0000
(20:28 +0000)
committer
Sapan Bhatia
<sapanb@cs.princeton.edu>
Fri, 29 Feb 2008 20:28:01 +0000
(20:28 +0000)
vsyssh/vsyssh.c
patch
|
blob
|
history
diff --git
a/vsyssh/vsyssh.c
b/vsyssh/vsyssh.c
index
fd82c6e
..
889e41a
100644
(file)
--- a/
vsyssh/vsyssh.c
+++ b/
vsyssh/vsyssh.c
@@
-39,8
+39,6
@@
int main(int argc, char **argv, char **envp)
strcpy(outf,argv[1]);
strcat(inf,".in");
strcat(outf,".out");
strcpy(outf,argv[1]);
strcat(inf,".in");
strcat(outf,".out");
- tv.tv_sec = 100;
- tv.tv_usec = 0;
vfd1 = open(inf,O_WRONLY|O_NONBLOCK);
vfd0 = open(outf,O_RDONLY|O_NONBLOCK);
vfd1 = open(inf,O_WRONLY|O_NONBLOCK);
vfd0 = open(outf,O_RDONLY|O_NONBLOCK);
@@
-61,7
+59,7
@@
int main(int argc, char **argv, char **envp)
printf("vsys>");fflush(stdout);
FD_SET(0, &set);
FD_SET(vfd0, &set);
printf("vsys>");fflush(stdout);
FD_SET(0, &set);
FD_SET(vfd0, &set);
- ret = select(vfd0+1, &set, NULL, NULL,
&tv
);
+ ret = select(vfd0+1, &set, NULL, NULL,
NULL
);
if (FD_ISSET(0,&set)) {
char lineread[2048];
int ret;
if (FD_ISSET(0,&set)) {
char lineread[2048];
int ret;