Revision: 23220 http://trac.macosforge.org/projects/launchd/changeset/23220 Author: zarzycki@apple.com Date: 2007-04-12 14:41:06 -0700 (Thu, 12 Apr 2007) Log Message: ----------- Delete transitional conditional. Modified Paths: -------------- trunk/launchd/src/launchd_core_logic.c Modified: trunk/launchd/src/launchd_core_logic.c =================================================================== --- trunk/launchd/src/launchd_core_logic.c 2007-04-12 21:35:37 UTC (rev 23219) +++ trunk/launchd/src/launchd_core_logic.c 2007-04-12 21:41:06 UTC (rev 23220) @@ -3380,7 +3380,6 @@ job_setup_exception_port(job_t j, task_t target_task) { thread_state_flavor_t f = 0; - exception_mask_t em; if (!the_exception_server) { return; @@ -3392,18 +3391,12 @@ f = x86_THREAD_STATE; #endif -#if defined(EXC_MASK_CRASH) - em = EXC_MASK_CRASH; -#else - em = EXC_MASK_RPC_ALERT; -#endif - if (target_task) { - job_assumes(j, task_set_exception_ports(target_task, em, the_exception_server, + job_assumes(j, task_set_exception_ports(target_task, EXC_MASK_CRASH, the_exception_server, EXCEPTION_STATE_IDENTITY | MACH_EXCEPTION_CODES, f) == KERN_SUCCESS); } else if (getpid() == 1) { mach_port_t mhp = mach_host_self(); - job_assumes(j, host_set_exception_ports(mhp, em, the_exception_server, + job_assumes(j, host_set_exception_ports(mhp, EXC_MASK_CRASH, the_exception_server, EXCEPTION_STATE_IDENTITY | MACH_EXCEPTION_CODES, f) == KERN_SUCCESS); job_assumes(j, launchd_mport_deallocate(mhp) == KERN_SUCCESS); }
participants (1)
-
source_changes@macosforge.org