Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F171225343
D32934.id98340.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
593 B
Referenced Files
None
Subscribers
None
D32934.id98340.diff
View Options
Index: usr.sbin/jail/jail.c
===================================================================
--- usr.sbin/jail/jail.c
+++ usr.sbin/jail/jail.c
@@ -451,6 +451,16 @@
if (next_command(j))
continue;
jail_create_done:
+ /* Stop the jail when not in failure and not persisting. */
+ if ((j->flags & JF_PERSIST) && !(j->flags & JF_FAILED)) {
+ j->flags = JF_STOP;
+ j->comparam = stopcommands;
+ j->comstring = NULL;
+ dep_reset(j);
+
+ if (!dep_check(j))
+ requeue(j, &ready);
+ }
clear_persist(j);
if (jfp != NULL)
print_jail(jfp, j, oldcl, 1);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Sep 10, 3:49 PM (9 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38655267
Default Alt Text
D32934.id98340.diff (593 B)
Attached To
Mode
D32934: jail(8): cleanup jail when not persisting
Attached
Detach File
Event Timeline
Log In to Comment