Changeset b09e0d7 in mainline for uspace/srv/taskman/main.c


Ignore:
Timestamp:
2020-01-09T01:04:57Z (4 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
eaafee3
Parents:
5830c7b
git-author:
Matthieu Riolo <matthieu.riolo@…> (2020-01-04 20:16:49)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2020-01-09 01:04:57)
Message:

Correcting taskman handler for properly dealing with
TASKMAN_LOADER_CALLBACK calls

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/taskman/main.c

    r5830c7b rb09e0d7  
    232232        if (sess_ref == NULL) {
    233233                async_answer_0(icall, ENOMEM);
     234                return;
    234235        }
    235236
     
    270271                        return;
    271272                }
    272         } else if (ipc_get_imethod(icall) == IPC_M_CONNECT_TO_ME) {
    273                 switch (ipc_get_arg2(icall)) {
    274                 case TASKMAN_LOADER_CALLBACK:
    275                         loader_callback(icall);
    276                         return;
    277                 default:
    278                         DPRINTF("%s:%d from %" PRIu64 "/%" SCNuPTR "/%" SCNuPTR "/%" SCNuPTR "\n",
    279                             __func__, __LINE__,
    280                             icall->task_id, ipc_get_imethod(icall),
    281                             ipc_get_arg1(icall), ipc_get_arg2(icall));
    282                         async_answer_0(icall, ENOTSUP);
    283                         return;
    284                 }
    285273        }
    286274
     
    308296                        taskman_ctl_ev_callback(&call);
    309297                        break;
     298                case IPC_M_CONNECT_TO_ME:
     299                        if (ipc_get_arg2(&call) == TASKMAN_LOADER_CALLBACK) {
     300                                loader_callback(&call);
     301                                break;
     302                        }
     303                        goto FALLTHROUGH_DEFAULT;
     304                        break;
     305                FALLTHROUGH_DEFAULT:
    310306                default:
    311307                        DPRINTF("%s:%d from %" PRIu64 "/%" SCNuPTR "/%" SCNuPTR "/%" SCNuPTR "\n",
Note: See TracChangeset for help on using the changeset viewer.