Changeset 102f641 in mainline for uspace/srv/taskman/main.c
- Timestamp:
- 2019-09-02T19:01:50Z (6 years ago)
- Children:
- 25697163
- Parents:
- 241f1985
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/taskman/main.c
r241f1985 r102f641 54 54 #include "taskman.h" 55 55 56 57 56 typedef struct { 58 57 link_t link; … … 74 73 { 75 74 DPRINTF("%s:%i from %llu\n", __func__, __LINE__, icall->task_id); 76 /* We don't accept the connection request, we forward it instead to 77 * freshly spawned loader. */ 75 /* 76 * We don't accept the connection request, we forward it instead to 77 * freshly spawned loader. 78 */ 78 79 errno_t rc = loader_spawn("loader"); 79 80 80 81 if (rc != EOK) { 81 82 async_answer_0(icall, rc); 82 83 return; 83 84 } 84 85 85 86 /* Wait until spawned task presents itself to us. */ 86 87 link_t *link = prodcons_consume(&sess_queue); … … 148 149 /* Used only for connection forwarding -- atomic */ 149 150 session_ns = async_callback_receive(EXCHANGE_ATOMIC); 150 151 151 152 if (session_ns == NULL) { 152 153 rc = ENOENT; … … 218 219 // TODO check that loader is expected, would probably discard prodcons 219 220 // scheme 220 221 221 222 /* Preallocate session container */ 222 223 sess_ref_t *sess_ref = malloc(sizeof(sess_ref_t)); … … 265 266 static bool handle_implicit_call(ipc_call_t *icall) 266 267 { 267 /*DPRINTF("%s:%i %i(%i) from %llu\n", __func__, __LINE__,268 IPC_GET_IMETHOD(*icall),269 IPC_GET_ARG1(*icall),270 icall->in_task_id);*/271 272 268 if (ipc_get_imethod(icall) < IPC_FIRST_USER_METHOD) { 273 269 switch (ipc_get_arg1(icall)) { … … 330 326 } 331 327 332 333 334 328 int main(int argc, char *argv[]) 335 329 { … … 358 352 return rc; 359 353 } 360 354 361 355 task_id_t self_id = task_get_id(); 362 356 rc = task_intro(self_id);
Note:
See TracChangeset
for help on using the changeset viewer.