Include needed #include for regression tests.
Sponsored by: DARPA & NAI Labs.
This commit is contained in:
parent
425b005dba
commit
faefe44cff
@ -42,6 +42,7 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
#include <string.h>
|
||||||
#include <err.h>
|
#include <err.h>
|
||||||
#else
|
#else
|
||||||
#include <sys/systm.h>
|
#include <sys/systm.h>
|
||||||
@ -301,10 +302,8 @@ g_slice_orphan(struct g_consumer *cp)
|
|||||||
|
|
||||||
gp = cp->geom;
|
gp = cp->geom;
|
||||||
gp->flags |= G_GEOM_WITHER;
|
gp->flags |= G_GEOM_WITHER;
|
||||||
/* First prevent any new requests */
|
|
||||||
error = cp->provider->error;
|
error = cp->provider->error;
|
||||||
LIST_FOREACH(pp, &gp->provider, provider)
|
LIST_FOREACH(pp, &gp->provider, provider)
|
||||||
g_orphan_provider(pp, error);
|
g_orphan_provider(pp, error);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user