From: Philip Homburg Date: Mon, 23 Apr 2007 12:12:32 +0000 (+0000) Subject: Added cpf_reload to reload the safecopy table pointer (for example after a X-Git-Tag: v3.1.4~432 X-Git-Url: http://zhaoyanbai.com/repos/Bv9ARM.ch01.html?a=commitdiff_plain;h=4ce9ca03cf7941819edea1c287158bf72aa5317b;p=minix.git Added cpf_reload to reload the safecopy table pointer (for example after a fork). --- diff --git a/lib/syslib/safecopies.c b/lib/syslib/safecopies.c index 468c98d77..845afc451 100644 --- a/lib/syslib/safecopies.c +++ b/lib/syslib/safecopies.c @@ -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? */ +}