svn rev #25433: trunk/src/kadmin/server/

ghudson@MIT.EDU ghudson at MIT.EDU
Fri Nov 4 01:53:23 EDT 2011


http://src.mit.edu/fisheye/changelog/krb5/?cs=25433
Commit By: ghudson
Log Message:
ticket: 7000
subject: Exit on error in kadmind kprop child
target_version: 1.10
tags: pullup

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.


Changed Files:
U   trunk/src/kadmin/server/ipropd_svc.c
Modified: trunk/src/kadmin/server/ipropd_svc.c
===================================================================
--- trunk/src/kadmin/server/ipropd_svc.c	2011-11-03 17:42:46 UTC (rev 25432)
+++ trunk/src/kadmin/server/ipropd_svc.c	2011-11-04 05:53:23 UTC (rev 25433)
@@ -380,7 +380,7 @@
 			     _("%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 @@
 			     _("%s: exec failed: %s"),
 			     whoami,
 			     error_message(errno));
-	    goto out;
+	    _exit(1);
 	}
 
     default: /* parent */




More information about the cvs-krb5 mailing list