Changeset 23621
- Timestamp:
- 2008-05-05 16:31:03 (4 months ago)
- Files:
-
- 1 modified
-
trunk/launchd/src/launchd_runtime.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/launchd/src/launchd_runtime.c
r23599 r23621 38 38 #include <sys/types.h> 39 39 #include <sys/stat.h> 40 #include <sys/sysctl.h> 40 41 #include <sys/time.h> 41 42 #include <sys/proc.h> … … 148 149 mach_msg_size_t mxmsgsz; 149 150 pthread_attr_t attr; 151 pid_t p = getpid(); 150 152 151 153 launchd_assert((mainkq = kqueue()) != -1); … … 176 178 launchd_assert(pthread_create(&demand_thread, &attr, mport_demand_loop, NULL) == 0); 177 179 pthread_attr_destroy(&attr); 180 181 launchd_assumes(sysctlbyname("vfs.generic.noremotehang", NULL, NULL, &p, sizeof(p)) != -1); 178 182 } 179 183 … … 732 736 launchd_assumes(launchd_set_bport(MACH_PORT_NULL) == KERN_SUCCESS); 733 737 } else { 738 pid_t p = -getpid(); 739 launchd_assumes(sysctlbyname("vfs.generic.noremotehang", NULL, NULL, &p, sizeof(p)) != -1); 740 734 741 launchd_assumes(sigprocmask(SIG_SETMASK, &emptyset, NULL) != -1); 735 742 }

