Module Name: src
Committed By: pooka
Date: Sat Jan 22 13:43:08 UTC 2011
Modified Files:
src/usr.bin/rump_halt: rump.halt.c
Log Message:
Check sys_reboot() return value now that it's possible.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/usr.bin/rump_halt/rump.halt.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/rump_halt/rump.halt.c
diff -u src/usr.bin/rump_halt/rump.halt.c:1.1 src/usr.bin/rump_halt/rump.halt.c:1.2
--- src/usr.bin/rump_halt/rump.halt.c:1.1 Sun Dec 12 12:48:31 2010
+++ src/usr.bin/rump_halt/rump.halt.c Sat Jan 22 13:43:07 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: rump.halt.c,v 1.1 2010/12/12 12:48:31 pooka Exp $ */
+/* $NetBSD: rump.halt.c,v 1.2 2011/01/22 13:43:07 pooka Exp $ */
/*-
* Copyright (c) 2010 Antti Kantee. All Rights Reserved.
@@ -27,7 +27,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: rump.halt.c,v 1.1 2010/12/12 12:48:31 pooka Exp $");
+__RCSID("$NetBSD: rump.halt.c,v 1.2 2011/01/22 13:43:07 pooka Exp $");
#endif /* !lint */
#include <sys/types.h>
@@ -84,7 +84,8 @@
if (rumpclient_init() == -1)
err(1, "init failed");
- rump_sys_reboot(flags, NULL);
+ if (rump_sys_reboot(flags, NULL) == -1)
+ err(1, "reboot");
return 0;
}