Changeset 23557
- Timestamp:
- 2008-03-18 10:47:38 (7 months ago)
- Files:
-
- 1 modified
-
branches/SULeopard/launchd/src/liblaunch.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/SULeopard/launchd/src/liblaunch.c
r23378 r23557 148 148 static void launch_mach_checkin_service(launch_data_t obj, const char *key, void *context); 149 149 150 static launch_t in_flight_msg_recv_client; 150 151 static pthread_once_t _lc_once = PTHREAD_ONCE_INIT; 151 152 … … 563 564 launchd_close(launch_t lh, typeof(close) closefunc) 564 565 { 566 if (in_flight_msg_recv_client == lh) { 567 in_flight_msg_recv_client = NULL; 568 } 569 565 570 if (lh->sendbuf) 566 571 free(lh->sendbuf); … … 1010 1015 } 1011 1016 1017 in_flight_msg_recv_client = lh; 1018 1012 1019 cb(rmsg, context); 1020 1021 /* launchd and only launchd can call launchd_close() as a part of the callback */ 1022 if (in_flight_msg_recv_client == NULL) { 1023 r = 0; 1024 break; 1025 } 1013 1026 1014 1027 lh->recvlen -= data_offset;

