fprintf(f, "usage: #!/usr/bin/prefork-interp [<options>]\n");
}
-static int laundering;
-static int mode;
-static int max_sockets = 100; // maximum entries in the run dir is 2x this
-
-static struct stat initial_stab;
-
#define MODE_NORMAL 0
#define MODE_KILL 'k'
#define MODE_FRESH 'f'
+#define MEDIATION_UNSPECIFIED 0
+#define MEDIATION_UNLAUNDERED 'U'
+
+static int mediation = MEDIATION_UNSPECIFIED;
+static int mode = MODE_NORMAL;
+static int max_sockets = 100; // maximum entries in the run dir is 2x this
+
+static struct stat initial_stab;
+
const struct cmdinfo cmdinfos[]= {
PREFORK_CMDINFOS
- { 0, 'U', 0, .iassignto= &laundering, .arg= 'U' },
- { "kill", 0, 0, .iassignto= &mode, .arg= MODE_KILL },
- { 0, 'f', 0, .iassignto= &mode, .arg= MODE_FRESH },
+ { 0, 'U', 0, .iassignto= &mediation, .arg= MEDIATION_UNLAUNDERED },
+ { "kill", 0, 0, .iassignto= &mode, .arg= MODE_KILL },
+ { 0, 'f', 0, .iassignto= &mode, .arg= MODE_FRESH },
{ 0 }
};
}
static void make_executor_argv(const char *const *argv) {
- switch (laundering) {
- case 'U': break;
+ switch (mediation) {
+ case MEDIATION_UNLAUNDERED: break;
default: die("need -U (specifying unlaundered argument handling)");
}