check rump_init() return value
This commit is contained in:
parent
5877c6dc5e
commit
f4ce96e86b
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: puffs_rumpglue.c,v 1.7 2008/09/05 10:42:09 pooka Exp $ */
|
||||
/* $NetBSD: puffs_rumpglue.c,v 1.8 2008/10/07 23:22:05 pooka Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2008 Antti Kantee. All Rights Reserved.
|
||||
@ -29,7 +29,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: puffs_rumpglue.c,v 1.7 2008/09/05 10:42:09 pooka Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: puffs_rumpglue.c,v 1.8 2008/10/07 23:22:05 pooka Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/conf.h>
|
||||
@ -166,7 +166,9 @@ syspuffs_glueinit(int fd, int *newfd)
|
||||
struct ptargs *pap;
|
||||
int rv;
|
||||
|
||||
rump_init();
|
||||
if ((rv = rump_init()) != 0)
|
||||
return rv;
|
||||
|
||||
putterattach();
|
||||
rv = puttercdopen(makedev(178, 0), 0, 0, curlwp);
|
||||
if (rv && rv != EMOVEFD)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: rump_syspuffs.c,v 1.4 2008/09/02 19:38:25 pooka Exp $ */
|
||||
/* $NetBSD: rump_syspuffs.c,v 1.5 2008/10/07 23:23:43 pooka Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2008 Antti Kantee. All Rights Reserved.
|
||||
@ -102,7 +102,8 @@ mount_syspuffs_parseargs(int argc, char *argv[],
|
||||
if (socketpair(PF_LOCAL, SOCK_STREAM, 0, sv) == -1)
|
||||
err(1, "socketpair");
|
||||
|
||||
rump_init();
|
||||
if ((rv = rump_init()) == -1)
|
||||
err(1, "rump_init");
|
||||
|
||||
switch (fork()) {
|
||||
case 0:
|
||||
|
Loading…
Reference in New Issue
Block a user