]> Zhao Yanbai Git Server - minix.git/commitdiff
Publish endpoints in ds.
authorPhilip Homburg <philip@cs.vu.nl>
Fri, 27 Apr 2007 13:03:33 +0000 (13:03 +0000)
committerPhilip Homburg <philip@cs.vu.nl>
Fri, 27 Apr 2007 13:03:33 +0000 (13:03 +0000)
servers/rs/manager.c

index fce3fcaf832bffce5846cb925f83fb1cddfa0f1c..44029f35fe7aeded82c39adec77f7d8a33560a79 100644 (file)
@@ -10,6 +10,7 @@
 #include <sys/stat.h>
 #include <sys/wait.h>
 #include <minix/dmap.h>
+#include <minix/ds.h>
 #include <minix/endpoint.h>
 #include <minix/rs.h>
 #include <lib.h>
@@ -828,6 +829,11 @@ endpoint_t *endpoint;
   rproc_ptr[child_proc_nr_n] = rp;             /* mapping for fast access */
 
   if(endpoint) *endpoint = child_proc_nr_e;    /* send back child endpoint */
+
+  s= ds_publish_u32(rp->r_label, child_proc_nr_e);
+  if (s != OK)
+       printf("start_service: ds_publish_u32 failed: %d\n", s);
+
   return(OK);
 }