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:
249bf2c
)
(no commit message)
author
Sapan Bhatia
<sapanb@cs.princeton.edu>
Fri, 29 Feb 2008 15:09:28 +0000
(15:09 +0000)
committer
Sapan Bhatia
<sapanb@cs.princeton.edu>
Fri, 29 Feb 2008 15:09:28 +0000
(15:09 +0000)
vsyssh/vsyssh.c
patch
|
blob
|
history
diff --git
a/vsyssh/vsyssh.c
b/vsyssh/vsyssh.c
index
9deb5ba
..
3d32454
100644
(file)
--- a/
vsyssh/vsyssh.c
+++ b/
vsyssh/vsyssh.c
@@
-58,11
+58,12
@@
int main(int argc, char **argv, char **envp)
while (1) {
int ret;
while (1) {
int ret;
- printf("vsys>");
+ printf("vsys>");
fflush(stdout);
ret = select(vfd0+1, &set, NULL, NULL, &tv);
if (FD_ISSET(0,&set)) {
char lineread[2048];
int ret;
ret = select(vfd0+1, &set, NULL, NULL, &tv);
if (FD_ISSET(0,&set)) {
char lineread[2048];
int ret;
+ printf("Here\n");
ret=read(0,lineread,2048);
write(vfd1,lineread,ret);
FD_CLR(0,&set);
ret=read(0,lineread,2048);
write(vfd1,lineread,ret);
FD_CLR(0,&set);
@@
-70,6
+71,7
@@
int main(int argc, char **argv, char **envp)
else if (FD_ISSET(vfd0,&set)) {
char lineread[2048];
int ret;
else if (FD_ISSET(vfd0,&set)) {
char lineread[2048];
int ret;
+ printf("Here2\n");
ret=read(vfd0,lineread,2048);
write(1,lineread,ret);
FD_CLR(vfd0,&set);
ret=read(vfd0,lineread,2048);
write(1,lineread,ret);
FD_CLR(vfd0,&set);