Added cpf_reload to reload the safecopy table pointer (for example after a

fork).
This commit is contained in:
Philip Homburg 2007-04-23 12:12:32 +00:00
parent e9899f3c86
commit 4ce9ca03cf

View file

@ -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? */
}