Changeset 23388
- Timestamp:
- 09/14/07 13:25:43 (15 months ago)
- Location:
- trunk/launchd/src
- Files:
-
- 3 modified
-
launchctl.c (modified) (1 diff)
-
launchd_core_logic.c (modified) (2 diffs)
-
launchproxy.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/launchd/src/launchctl.c
r23378 r23388 3055 3055 3056 3056 if (fstat(fd, &sb) != -1) { 3057 if (( junkbuf = malloc(sb.st_size)) != NULL) {3058 assumes(read(fd, junkbuf, sb.st_size) ==sb.st_size);3057 if ((sb.st_size < 10*1024*1024) && (junkbuf = malloc((size_t)sb.st_size)) != NULL) { 3058 assumes(read(fd, junkbuf, (size_t)sb.st_size) == (ssize_t)sb.st_size); 3059 3059 free(junkbuf); 3060 3060 } -
trunk/launchd/src/launchd_core_logic.c
r23386 r23388 2344 2344 2345 2345 if (j->start_time && (td < j->min_run_time) && !j->legacy_mach_job && !j->inetcompat) { 2346 time_t respawn_delta = j->min_run_time - td;2346 time_t respawn_delta = j->min_run_time - (uint32_t)td; 2347 2347 2348 2348 /* … … 5899 5899 job_assumes(j, obj_at_idx = launch_data_array_get_index(out_obj_array, l2l_i)); 5900 5900 job_assumes(j, tmp = launch_data_dict_lookup(obj_at_idx, TAKE_SUBSET_PID)); 5901 target_pid = launch_data_get_integer(tmp);5901 target_pid = (pid_t)launch_data_get_integer(tmp); 5902 5902 job_assumes(j, tmp = launch_data_dict_lookup(obj_at_idx, TAKE_SUBSET_PERPID)); 5903 5903 serv_perpid = launch_data_get_bool(tmp); -
trunk/launchd/src/launchproxy.c
r23378 r23388 109 109 tmp = launch_data_dict_lookup(resp, LAUNCH_JOBKEY_TIMEOUT); 110 110 if (tmp) 111 timeout.tv_sec = launch_data_get_integer(tmp);111 timeout.tv_sec = (int)launch_data_get_integer(tmp); 112 112 113 113 tmp = launch_data_dict_lookup(resp, LAUNCH_JOBKEY_PROGRAM);

