Added cpf_reload to reload the safecopy table pointer (for example after a
fork).
This commit is contained in:
parent
e9899f3c86
commit
4ce9ca03cf
|
@ -310,4 +310,13 @@ cp_grant_id_t gid;
|
|||
return 0;
|
||||
}
|
||||
|
||||
PUBLIC void
|
||||
cpf_reload(void)
|
||||
{
|
||||
/* Inform the kernel about the location of the grant table. This is needed
|
||||
* after a fork.
|
||||
*/
|
||||
if (grants)
|
||||
sys_setgrant(grants, ngrants); /* Do we need error checking? */
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue