Source-Changes-HG archive

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

[src/trunk]: src/tests/lib/libc/rpc CID 1338516: Handle svc_run() returning.



details:   https://anonhg.NetBSD.org/src/rev/9a17eacb643e
branches:  trunk
changeset: 811674:9a17eacb643e
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Nov 10 18:13:01 2015 +0000

description:
CID 1338516: Handle svc_run() returning.

diffstat:

 tests/lib/libc/rpc/t_rpc.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 4cd329f1bd59 -r 9a17eacb643e tests/lib/libc/rpc/t_rpc.c
--- a/tests/lib/libc/rpc/t_rpc.c        Tue Nov 10 18:11:05 2015 +0000
+++ b/tests/lib/libc/rpc/t_rpc.c        Tue Nov 10 18:13:01 2015 +0000
@@ -1,7 +1,7 @@
-/*     $NetBSD: t_rpc.c,v 1.7 2015/11/08 19:40:06 christos Exp $       */
+/*     $NetBSD: t_rpc.c,v 1.8 2015/11/10 18:13:01 christos Exp $       */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_rpc.c,v 1.7 2015/11/08 19:40:06 christos Exp $");
+__RCSID("$NetBSD: t_rpc.c,v 1.8 2015/11/10 18:13:01 christos Exp $");
 
 #include <sys/types.h>
 #include <sys/socket.h>
@@ -182,6 +182,7 @@
        case 0:
                DPRINTF("Calling svc_run\n");
                svc_run();
+               ERRX(EXIT_FAILURE, "svc_run returned %d!", num);
        case -1:
                ERRX(EXIT_FAILURE, "Fork failed (%s)", strerror(errno));
        default:



Home | Main Index | Thread Index | Old Index