Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/librumpuser do previous the right way to avoid rumpuser ...



details:   https://anonhg.NetBSD.org/src/rev/25979445ce3a
branches:  trunk
changeset: 796179:25979445ce3a
user:      pooka <pooka%NetBSD.org@localhost>
date:      Fri May 23 16:57:42 2014 +0000

description:
do previous the right way to avoid rumpuser linkage dependency on librump

diffstat:

 lib/librumpuser/rumpuser_sp.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (36 lines):

diff -r aea597e51b79 -r 25979445ce3a lib/librumpuser/rumpuser_sp.c
--- a/lib/librumpuser/rumpuser_sp.c     Fri May 23 16:48:52 2014 +0000
+++ b/lib/librumpuser/rumpuser_sp.c     Fri May 23 16:57:42 2014 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: rumpuser_sp.c,v 1.64 2014/05/23 11:04:03 pooka Exp $  */
+/*      $NetBSD: rumpuser_sp.c,v 1.65 2014/05/23 16:57:42 pooka Exp $  */
 
 /*
  * Copyright (c) 2010, 2011 Antti Kantee.  All Rights Reserved.
@@ -37,7 +37,7 @@
 #include "rumpuser_port.h"
 
 #if !defined(lint)
-__RCSID("$NetBSD: rumpuser_sp.c,v 1.64 2014/05/23 11:04:03 pooka Exp $");
+__RCSID("$NetBSD: rumpuser_sp.c,v 1.65 2014/05/23 16:57:42 pooka Exp $");
 #endif /* !lint */
 
 #include <sys/types.h>
@@ -1380,13 +1380,13 @@
         * close fd's.  The assumption is that people who
         * write servers (i.e. "kernels") know what they're doing.
         */
-       calllwp = rump_pub_lwproc_curlwp();
-       if ((error = rump_pub_lwproc_rfork(RUMP_RFFDG)) != 0) {
+       calllwp = lwproc_curlwp();
+       if ((error = lwproc_rfork(NULL, RUMP_RFFDG, "spserver")) != 0) {
                fprintf(stderr, "rump_sp: rfork failed");
                goto out;
        }
-       sarg->sps_l = rump_pub_lwproc_curlwp();
-       rump_pub_lwproc_switch(calllwp);
+       sarg->sps_l = lwproc_curlwp();
+       lwproc_switch(calllwp);
        if ((error = pthread_create(&pt, NULL, spserver, sarg)) != 0) {
                fprintf(stderr, "rump_sp: cannot create wrkr thread\n");
                goto out;



Home | Main Index | Thread Index | Old Index