rs: stacktrace if system process exits early.

This commit is contained in:
Ben Gras 2010-04-29 08:50:17 +00:00
parent 83ef7119f6
commit 4ac5eb7832

View File

@ -822,6 +822,7 @@ PUBLIC void terminate_service(struct rproc *rp)
if(rp->r_flags & RS_INITIALIZING) {
printf("RS: service '%s' exited during initialization\n", rpub->label);
rp->r_flags |= RS_EXITING; /* don't restart. */
sys_sysctl_stacktrace(rp->r_pub->endpoint);
/* If updating, rollback. */
if(rp->r_flags & RS_UPDATING) {