From cfe35a675e18b70def57380c62ab9bd2a84ac6f6 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Sun, 1 Mar 2009 10:37:35 -0800 Subject: [PATCH] Fix checkpt's thaw failure error message. --- usr.bin/checkpt/checkpt.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/usr.bin/checkpt/checkpt.c b/usr.bin/checkpt/checkpt.c index 66cbffe..ec6fbc3 100644 --- a/usr.bin/checkpt/checkpt.c +++ b/usr.bin/checkpt/checkpt.c @@ -39,6 +39,7 @@ #include #include #include +#include static void @@ -75,7 +76,7 @@ main(int ac, char **av) } error = sys_checkpoint(CKPT_THAW, fd, -1, 1); if (error) - fprintf(stderr, "thaw failed error %d %s\n", error, strerror(error)); + fprintf(stderr, "thaw failed error %d %s\n", errno, strerror(errno)); else fprintf(stderr, "Unknown error restoring checkpoint\n"); return(5); -- 1.7.7.2