X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=vsyssh%2Fvsyssh.c;h=b77d7f2a7c54ef7349e4bba32f6ddcc8fa201389;hb=47e86c6701f0bfe11a8a8784cd06db3283a57775;hp=889e41a11882c810997951443db250b9d456fcd4;hpb=a94e10d8cdc92ed752ad71888e13bb8ce9d42925;p=vsys.git diff --git a/vsyssh/vsyssh.c b/vsyssh/vsyssh.c index 889e41a..b77d7f2 100644 --- 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"); - vfd1 = open(inf,O_WRONLY|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) { - printf("Error opening vsys entry %s\n", argv[1]); + printf("Error opening vsys entry %s (%s)\n", argv[1],strerror(errno)); exit(1); }