shithub: riscv

Download patch

ref: b053f5d0607689b0217bc5e41669c5370335667c
parent: de289929a762ea1354f702d415ee9c5f25d4d0da
author: cinap_lenrek <[email protected]>
date: Sat Mar 7 08:23:34 EST 2020

aux/acpi, aux/apm: remove nopipe -i flag

--- a/sys/src/cmd/aux/acpi.c
+++ b/sys/src/cmd/aux/acpi.c
@@ -417,7 +417,7 @@
 static void
 usage(void)
 {
-	fprint(2, "usage: aux/acpi [-Di] [-d /dev] [-m /mnt/acpi] [-s service]\n");
+	fprint(2, "usage: aux/acpi [-D] [-d /dev] [-m /mnt/acpi] [-s service]\n");
 	exits("usage");
 }
 
@@ -448,12 +448,6 @@
 	case 'D':
 		chatty9p = 1;
 		break;
-	case 'i':
-		fs.nopipe++;
-		fs.infd = 0;
-		fs.outfd = 1;
-		mtpt = nil;
-		break;
 	case 'm':
 		mtpt = EARGF(usage());
 		break;
@@ -505,7 +499,6 @@
 	amlenum(amlroot, "_BIF", enumbat, nil);
 	amlenum(amlroot, "_PSL", enumtmp, nil);
 
-	rfork(RFNOTEG);
 	threadpostmountsrv(&fs, srv, mtpt, MREPL);
 	return;
 
--- a/sys/src/cmd/aux/apm.c
+++ b/sys/src/cmd/aux/apm.c
@@ -1081,7 +1081,7 @@
 void
 usage(void)
 {
-	fprint(2, "usage: aux/apm [-ADPi] [-d /dev/apm] [-m /mnt/apm] [-s service]\n");
+	fprint(2, "usage: aux/apm [-ADP] [-d /dev/apm] [-m /mnt/apm] [-s service]\n");
 	exits("usage");
 }
 
@@ -1106,12 +1106,6 @@
 	case 'd':
 		dev = EARGF(usage());
 		break;
-	case 'i':
-		fs.nopipe++;
-		fs.infd = 0;
-		fs.outfd = 1;
-		mtpt = nil;
-		break;
 	case 'm':
 		mtpt = EARGF(usage());
 		break;
@@ -1147,6 +1141,5 @@
 	apminstallationcheck(&apm);
 	apmcpuidle(&apm);
 
-	rfork(RFNOTEG);
 	threadpostmountsrv(&fs, srv, mtpt, MREPL);
 }