Exit on error in kadmind kprop child
authorGreg Hudson <ghudson@mit.edu>
Fri, 4 Nov 2011 05:53:23 +0000 (05:53 +0000)
committerGreg Hudson <ghudson@mit.edu>
Fri, 4 Nov 2011 05:53:23 +0000 (05:53 +0000)
When we fork from kadmind to dump the database and kprop to an iprop
slave, if we encounter an error in the child process we should exit
rather than returning to the main loop.

ticket: 7000
target_version: 1.10
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25433 dc483132-0cff-0310-8789-dd5450dbe970

src/kadmin/server/ipropd_svc.c

index d732098a2f7d1b240cdc7d4b9fb32c7d759e7bc7..0e45f6a17c8a59308ba517d41e8a86fd7115db6e 100644 (file)
@@ -380,7 +380,7 @@ ipropx_resync(uint32_t vers, struct svc_req *rqstp)
                             _("%s: pclose(popen) failed: %s"),
                             whoami,
                             error_message(errno));
-           goto out;
+           _exit(1);
        }
 
        DPRINT(("%s: exec `kprop -f %s %s' ...\n",
@@ -401,7 +401,7 @@ ipropx_resync(uint32_t vers, struct svc_req *rqstp)
                             _("%s: exec failed: %s"),
                             whoami,
                             error_message(errno));
-           goto out;
+           _exit(1);
        }
 
     default: /* parent */