Changeset 035d7d8 in mainline for uspace/srv/taskman/main.c
- Timestamp:
- 2019-08-07T05:49:44Z (6 years ago)
- Children:
- 2aaccd3
- Parents:
- 456f7ae
- git-author:
- Michal Koutný <xm.koutny+hos@…> (2015-10-21 22:44:26)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2019-08-07 05:49:44)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/taskman/main.c
r456f7ae r035d7d8 39 39 #include <stdlib.h> 40 40 41 #include "event.h" 41 42 #include "task.h" 42 43 #include "taskman.h" … … 63 64 64 65 if (rc != EOK) { 66 printf(NAME ": %s -> %i\n", __func__, rc); 65 67 async_answer_0(iid, rc); 66 68 return; … … 125 127 { 126 128 printf("%s:%i from %llu\n", __func__, __LINE__, icall->in_task_id); 127 async_answer_0(iid, ENOTSUP); // TODO interrupt here 129 /* Atomic -- will be used for notifications only */ 130 async_sess_t *sess = async_callback_receive(EXCHANGE_ATOMIC); 131 if (sess == NULL) { 132 async_answer_0(iid, ENOMEM); 133 return; 134 } 135 136 int rc = event_register_listener(icall->in_task_id, sess); 137 async_answer_0(iid, rc); 128 138 } 129 139 … … 268 278 return rc; 269 279 } 280 rc = event_init(); 281 if (rc != EOK) { 282 return rc; 283 } 270 284 271 285 rc = async_event_subscribe(EVENT_EXIT, task_exit_event, NULL);
Note:
See TracChangeset
for help on using the changeset viewer.