Changeset 23556
- Timestamp:
- 03/18/08 10:46:21 (9 months ago)
- Files:
-
- 1 modified
-
trunk/launchd/src/liblaunch.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/launchd/src/liblaunch.c
r23552 r23556 167 167 static void launch_mach_checkin_service(launch_data_t obj, const char *key, void *context); 168 168 169 static launch_t in_flight_msg_recv_client; 169 170 static pthread_once_t _lc_once = PTHREAD_ONCE_INIT; 170 171 … … 582 583 launchd_close(launch_t lh, typeof(close) closefunc) 583 584 { 585 if (in_flight_msg_recv_client == lh) { 586 in_flight_msg_recv_client = NULL; 587 } 588 584 589 if (lh->sendbuf) 585 590 free(lh->sendbuf); … … 1031 1036 } 1032 1037 1038 in_flight_msg_recv_client = lh; 1039 1033 1040 cb(rmsg, context); 1041 1042 /* launchd and only launchd can call launchd_close() as a part of the callback */ 1043 if (in_flight_msg_recv_client == NULL) { 1044 r = 0; 1045 break; 1046 } 1034 1047 1035 1048 lh->recvlen -= data_offset;

