Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/jail/jail.c
Show First 20 Lines • Show All 147 Lines • ▼ Show 20 Lines | |||||
#endif | #endif | ||||
op = 0; | op = 0; | ||||
dflag = Rflag = 0; | dflag = Rflag = 0; | ||||
docf = 1; | docf = 1; | ||||
cfname = CONF_FILE; | cfname = CONF_FILE; | ||||
JidFile = NULL; | JidFile = NULL; | ||||
/* | |||||
* Ignore any SIGINT during jail(8) operation. If we're running a | |||||
* command, then it should generally be terminated to trigger cleanup of | |||||
* the jail. Otherwise, we may end up with jails sticking around that | |||||
* should have been destroyed. | |||||
*/ | |||||
(void)signal(SIGINT, SIG_IGN); | |||||
while ((ch = getopt(argc, argv, "cde:f:hiJ:lmn:p:qrRs:u:U:v")) != -1) { | while ((ch = getopt(argc, argv, "cde:f:hiJ:lmn:p:qrRs:u:U:v")) != -1) { | ||||
switch (ch) { | switch (ch) { | ||||
case 'c': | case 'c': | ||||
op |= JF_START; | op |= JF_START; | ||||
break; | break; | ||||
case 'd': | case 'd': | ||||
dflag = 1; | dflag = 1; | ||||
break; | break; | ||||
▲ Show 20 Lines • Show All 887 Lines • Show Last 20 Lines |