]> Zhao Yanbai Git Server - minix.git/commitdiff
Added cpf_reload to reload the safecopy table pointer (for example after a
authorPhilip Homburg <philip@cs.vu.nl>
Mon, 23 Apr 2007 12:12:32 +0000 (12:12 +0000)
committerPhilip Homburg <philip@cs.vu.nl>
Mon, 23 Apr 2007 12:12:32 +0000 (12:12 +0000)
fork).

lib/syslib/safecopies.c

index 468c98d77aa8bfe98bfb873a0c6d28747c1f7935..845afc451f228922fff2f0ee60d6f23d14a1c5a1 100644 (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? */
+}