Changeset 15d0046 in mainline for uspace/srv/hid/remcons/remcons.c


Ignore:
Timestamp:
2014-09-12T13:22:33Z (10 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9b20126
Parents:
8db09e4 (diff), 105d8d6 (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.
Message:

Merge mainline changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/remcons/remcons.c

    r8db09e4 r15d0046  
    4040#include <str_error.h>
    4141#include <loc.h>
    42 #include <event.h>
    4342#include <io/keycode.h>
    4443#include <align.h>
     
    225224{
    226225        telnet_user_t *user = arg;
    227         int rc;
    228 
    229         char term[LOC_NAME_MAXLEN];
    230         snprintf(term, LOC_NAME_MAXLEN, "%s/%s", "/loc", user->service_name);
    231 
     226       
    232227        task_id_t task;
    233         rc = task_spawnl(&task, APP_GETTERM, APP_GETTERM, "-w", term, APP_SHELL, NULL);
    234         if (rc != EOK) {
    235                 telnet_user_error(user, "Spawning `%s -w %s %s' failed: %s.",
    236                     APP_GETTERM, term, APP_SHELL, str_error(rc));
     228        task_wait_t wait;
     229        int rc = task_spawnl(&task, &wait, APP_GETTERM, APP_GETTERM, user->service_name,
     230            "/loc", "--msg", "--", APP_SHELL, NULL);
     231        if (rc != EOK) {
     232                telnet_user_error(user, "Spawning `%s %s /loc --msg -- %s' "
     233                    "failed: %s.", APP_GETTERM, user->service_name, APP_SHELL,
     234                    str_error(rc));
    237235                fibril_mutex_lock(&user->guard);
    238236                user->task_finished = true;
     
    249247        task_exit_t task_exit;
    250248        int task_retval;
    251         task_wait(task, &task_exit, &task_retval);
     249        task_wait(&wait, &task_exit, &task_retval);
    252250        telnet_user_log(user, "%s terminated %s, exit code %d.", APP_GETTERM,
    253251            task_exit == TASK_EXIT_NORMAL ? "normally" : "unexpectedly",
Note: See TracChangeset for help on using the changeset viewer.