FreeBSD Bugzilla – Attachment 147098 Details for
Bug 193457
Enabling RACCT/RCTL causes system hang
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Test case
racthang.c (text/plain), 585 bytes, created by
Edward Tomasz Napierala
on 2014-09-09 07:42:02 UTC
(
hide
)
Description:
Test case
Filename:
MIME Type:
Creator:
Edward Tomasz Napierala
Created:
2014-09-09 07:42:02 UTC
Size:
585 bytes
patch
obsolete
>#include <err.h> >#include <errno.h> >#include <stdio.h> >#include <stdlib.h> >#include <sys/param.h> >#include <sys/jail.h> >#include <jail.h> > >int main( ) { > > int jid ; > > jid = jail_setv( JAIL_CREATE, > "name", "hangjail", > "persist", NULL, > "host.hostname", "hangjail", > "path", "/", > "ip4.addr", NULL, > NULL, NULL > ); > if ( -1 == jid ) > err(1, "jail_setv"); > > /* This call will hang. */ > jid = jail_setv( JAIL_UPDATE|JAIL_ATTACH, "name", "hangjail", NULL, NULL ); > if ( -1 == jid ) > err(1, "jail_setv 2"); > > jail_remove( jid ); > > puts( "Success!" ); > > return 0; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 193457
: 147098