Source-Changes-HG archive

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

[src/trunk]: src/lib/librumpclient make sure we don't use "fullset" before we...



details:   https://anonhg.NetBSD.org/src/rev/48a668ff241e
branches:  trunk
changeset: 761781:48a668ff241e
user:      pooka <pooka%NetBSD.org@localhost>
date:      Mon Feb 07 14:49:53 2011 +0000

description:
make sure we don't use "fullset" before we init it

diffstat:

 lib/librumpclient/rumpclient.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 1ed08a7c7a5d -r 48a668ff241e lib/librumpclient/rumpclient.c
--- a/lib/librumpclient/rumpclient.c    Mon Feb 07 14:49:32 2011 +0000
+++ b/lib/librumpclient/rumpclient.c    Mon Feb 07 14:49:53 2011 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: rumpclient.c,v 1.24 2011/02/06 15:43:20 pooka Exp $   */
+/*      $NetBSD: rumpclient.c,v 1.25 2011/02/07 14:49:53 pooka Exp $   */
 
 /*
  * Copyright (c) 2010, 2011 Antti Kantee.  All Rights Reserved.
@@ -689,6 +689,8 @@
        char *p;
        int error;
 
+       sigfillset(&fullset);
+
        /* dlsym overrided by rumphijack? */
        if (!rumpclient_dlsym)
                rumpclient_dlsym = dlsym;
@@ -744,7 +746,6 @@
                return -1;
        }
 
-       sigfillset(&fullset);
        return 0;
 }
 



Home | Main Index | Thread Index | Old Index