Changeset 76b5a95c in mainline for uspace/lib/c/generic/async.c
- Timestamp:
- 2011-03-23T20:53:30Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 71af5a4
- Parents:
- 5716e9a (diff), ab10b842 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/async.c
r5716e9a r76b5a95c 430 430 431 431 fid_t fid = fibril_create(notification_fibril, msg); 432 if (fid == 0) { 433 free(msg); 434 futex_up(&async_futex); 435 return false; 436 } 437 432 438 fibril_add_ready(fid); 433 439 … … 681 687 conn->wdata.fid = fibril_create(connection_fibril, conn); 682 688 683 if ( !conn->wdata.fid) {689 if (conn->wdata.fid == 0) { 684 690 free(conn); 691 685 692 if (callid) 686 693 ipc_answer_0(callid, ENOMEM); 694 687 695 return (uintptr_t) NULL; 688 696 } … … 853 861 { 854 862 fid_t fid = fibril_create(async_manager_fibril, NULL); 855 fibril_add_manager(fid); 863 if (fid != 0) 864 fibril_add_manager(fid); 856 865 } 857 866
Note:
See TracChangeset
for help on using the changeset viewer.