[4.0] 3d6268f panic with INCOMPL() rather than exit(4)

Lasse Karstensen lkarsten at varnish-software.com
Mon Sep 22 16:38:25 CEST 2014


commit 3d6268f839994a8a568129487e1a137ce0edc3ba
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Fri Aug 29 14:50:31 2014 +0200

    panic with INCOMPL() rather than exit(4)
    
    Fixes #1583

diff --git a/bin/varnishd/mgt/mgt_sandbox_solaris.c b/bin/varnishd/mgt/mgt_sandbox_solaris.c
index 2d92968..1cc277a 100644
--- a/bin/varnishd/mgt/mgt_sandbox_solaris.c
+++ b/bin/varnishd/mgt/mgt_sandbox_solaris.c
@@ -235,8 +235,7 @@ mgt_sandbox_solaris_add_inheritable(priv_set_t *pset, enum sandbox_e who)
 	case SANDBOX_WORKER:
 		break;
 	default:
-		REPORT(LOG_ERR, "INCOMPLETE AT: %s(%d)\n", __func__, __LINE__);
-		exit(4);
+		INCOMPL();
 	}
 }
 
@@ -262,8 +261,7 @@ mgt_sandbox_solaris_add_effective(priv_set_t *pset, enum sandbox_e who)
 		priv_setop_assert(priv_addset(pset, "file_write"));
 		break;
 	default:
-		REPORT(LOG_ERR, "INCOMPLETE AT: %s(%d)\n", __func__, __LINE__);
-		exit(4);
+		INCOMPL();
 	}
 }
 
@@ -285,8 +283,7 @@ mgt_sandbox_solaris_add_permitted(priv_set_t *pset, enum sandbox_e who)
 		AZ(priv_addset(pset, PRIV_SYS_RESOURCE));
 		break;
 	default:
-		REPORT(LOG_ERR, "INCOMPLETE AT: %s(%d)\n", __func__, __LINE__);
-		exit(4);
+		INCOMPL();
 	}
 }
 



More information about the varnish-commit mailing list