Changeset 79872cd in mainline for kernel/generic/src
- Timestamp:
- 2008-08-27T21:01:22Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 69145dae
- Parents:
- ddb0df5
- Location:
- kernel/generic/src/ipc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ipc/ipc.c
rddb0df5 r79872cd 172 172 * @param phone Destination kernel phone structure. 173 173 * @param request Call structure with request. 174 */ 175 void ipc_call_sync(phone_t *phone, call_t *request) 174 * 175 * @return EOK on success or EINTR if the sleep was interrupted. 176 */ 177 int ipc_call_sync(phone_t *phone, call_t *request) 176 178 { 177 179 answerbox_t sync_box; … … 183 185 184 186 ipc_call(phone, request); 185 ipc_wait_for_call(&sync_box, SYNCH_NO_TIMEOUT, SYNCH_FLAGS_NONE); 187 if (!ipc_wait_for_call(&sync_box, SYNCH_NO_TIMEOUT, 188 SYNCH_FLAGS_INTERRUPTIBLE)) 189 return EINTR; 190 return EOK; 186 191 } 187 192 -
kernel/generic/src/ipc/sysipc.c
rddb0df5 r79872cd 443 443 444 444 if (!(res = request_preprocess(&call))) { 445 ipc_call_sync(phone, &call); 445 rc = ipc_call_sync(phone, &call); 446 if (rc != EOK) 447 return rc; 446 448 process_answer(&call); 447 449 } else { … … 481 483 482 484 if (!(res = request_preprocess(&call))) { 483 ipc_call_sync(phone, &call); 485 rc = ipc_call_sync(phone, &call); 486 if (rc != EOK) 487 return rc; 484 488 process_answer(&call); 485 489 } else
Note:
See TracChangeset
for help on using the changeset viewer.