Check-in [2bb04fd22b]
Overview
Comment:Made exit path ifdef more consistent
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 2bb04fd22b2c60031c16c3404569f362b0abf009
User & Date: rkeene on 2014-11-14 17:26:26
Other Links: manifest | tags
Context
2014-11-14
21:44
Updated to use TCL_DEFS from tclConfig.sh check-in: 24908ac300 user: rkeene tags: trunk
17:26
Made exit path ifdef more consistent check-in: 2bb04fd22b user: rkeene tags: trunk
17:25
Enabled exit path by default in debug mode check-in: 76965f13c9 user: rkeene tags: trunk
Changes

Modified appfsd.c from [3133466dff] to [b7668e46f2].

918
919
920
921
922
923
924
925

926
927
928
929
930
931
932
918
919
920
921
922
923
924

925
926
927
928
929
930
931
932







-
+







	if (real_path == NULL) {
		return(NULL);
	}

	return(strdup(real_path));
}

#ifdef APPFS_EXIT_PATH
#if (defined(DEBUG) && defined(APPFS_EXIT_PATH)) || defined(APPFS_EXIT_PATH_ENABLE_MAJOR_SECURITY_HOLE)
static void appfs_exit(void) {
	int global_interp_reset_key;

	global_interp_reset_key = __sync_fetch_and_add(&interp_reset_key, 0);
	__sync_fetch_and_sub(&interp_reset_key, global_interp_reset_key);

	while (__sync_sub_and_fetch(&interp_reset_key, 1) >= 0) {