From 303d8acad75fc6f3440876efa531f765416d89dd Mon Sep 17 00:00:00 2001 From: Alexandra Ellwood Date: Tue, 2 Sep 2003 18:37:12 +0000 Subject: [PATCH] kill() might overwrite errno. Save it beforehand ticket: 1799 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15806 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/kadm5/srv/svr_principal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/kadm5/srv/svr_principal.c b/src/lib/kadm5/srv/svr_principal.c index 0666fe62b..c567f8369 100644 --- a/src/lib/kadm5/srv/svr_principal.c +++ b/src/lib/kadm5/srv/svr_principal.c @@ -1138,8 +1138,8 @@ kadm5_launch_task (krb5_context context, if (krb5_net_write (context, data_pipe[1], data_buffer, strlen (data_buffer)) < 0) { /* kill the child to make sure waitpid() won't hang later */ - kill (pid, SIGKILL); ret = errno; + kill (pid, SIGKILL); } } -- 2.26.2