rmmod: Deprecate --wait option
Remove --wait from usage() and give a message + sleep(10) if user is in
fact using it.
diff --git a/tools/rmmod.c b/tools/rmmod.c
index 0aa6fb6..843c4f5 100644
--- a/tools/rmmod.c
+++ b/tools/rmmod.c
@@ -52,8 +52,6 @@
"\t-s, --syslog print to syslog, not stderr\n"
"\t-v, --verbose enables more messages\n"
"\t-V, --version show version\n"
- "\t-w, --wait begins module removal even if it is used and\n"
- "\t will stop new users from accessing it.\n"
"\t-h, --help show this help\n",
progname);
}
@@ -161,6 +159,8 @@
verbose++;
break;
case 'w':
+ fprintf(stderr, "'Wait' behavior is targeted for removal from kernel.\nWe will now sleep for 10s, and then continue.\n");
+ sleep(10);
flags &= ~KMOD_REMOVE_NOWAIT;
break;
case 'h':