From: Alexandra Ellwood Date: Tue, 2 Sep 2003 18:37:12 +0000 (+0000) Subject: kill() might overwrite errno. Save it beforehand X-Git-Tag: krb5-1.4-beta1~743 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=303d8acad75fc6f3440876efa531f765416d89dd;p=krb5.git kill() might overwrite errno. Save it beforehand ticket: 1799 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15806 dc483132-0cff-0310-8789-dd5450dbe970 --- 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); } }