ramfs: don't use Srv.nopipe

This commit is contained in:
cinap_lenrek 2020-03-07 13:35:46 +01:00
parent b053f5d060
commit e0cb81af94

View file

@ -454,11 +454,11 @@ main(int argc, char **argv)
{ {
char *srvname = nil; char *srvname = nil;
char *mtpt = "/tmp"; char *mtpt = "/tmp";
int mountflags; int mountflags, stdio;
fs.tree = alloctree(nil, nil, DMDIR|0777, fsdestroyfile); fs.tree = alloctree(nil, nil, DMDIR|0777, fsdestroyfile);
mountflags = 0; mountflags = stdio = 0;
ARGBEGIN{ ARGBEGIN{
case 'D': case 'D':
chatty9p++; chatty9p++;
@ -475,9 +475,7 @@ main(int argc, char **argv)
mtpt = EARGF(usage()); mtpt = EARGF(usage());
break; break;
case 'i': case 'i':
fs.nopipe = 1; stdio = 1;
srvname = nil;
mtpt = nil;
break; break;
case 'p': case 'p':
private = 1; private = 1;
@ -500,7 +498,7 @@ main(int argc, char **argv)
if(argc > 0) if(argc > 0)
usage(); usage();
if(fs.nopipe){ if(stdio){
fs.infd = 0; fs.infd = 0;
fs.outfd = 1; fs.outfd = 1;
srv(&fs); srv(&fs);