git://git.onelab.eu
/
vsys.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Next batch of tweaks
[vsys.git]
/
vsyssh
/
vsyssh.c
diff --git
a/vsyssh/vsyssh.c
b/vsyssh/vsyssh.c
index
889e41a
..
b77d7f2
100644
(file)
--- a/
vsyssh/vsyssh.c
+++ b/
vsyssh/vsyssh.c
@@
-40,11
+40,13
@@
int main(int argc, char **argv, char **envp)
strcat(inf,".in");
strcat(outf,".out");
strcat(inf,".in");
strcat(outf,".out");
- vfd1 = open(inf,O_WRONLY|O_NONBLOCK);
vfd0 = open(outf,O_RDONLY|O_NONBLOCK);
vfd0 = open(outf,O_RDONLY|O_NONBLOCK);
+ printf("Out file: %d\n",vfd0);
+ vfd1 = open(inf,O_WRONLY);
+ printf("In file: %d\n",vfd1);
if (vfd0==-1 || vfd1 == -1) {
if (vfd0==-1 || vfd1 == -1) {
- printf("Error opening vsys entry %s
\n", argv[1]
);
+ printf("Error opening vsys entry %s
(%s)\n", argv[1],strerror(errno)
);
exit(1);
}
exit(1);
}