Changeset 8e7c9fe in mainline for uspace/srv/hid/remcons/remcons.c
- Timestamp:
- 2014-09-12T03:45:25Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c53b58e
- Parents:
- 3eb0c85 (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/remcons/remcons.c
r3eb0c85 r8e7c9fe 40 40 #include <str_error.h> 41 41 #include <loc.h> 42 #include <event.h>43 42 #include <io/keycode.h> 44 43 #include <align.h> … … 225 224 { 226 225 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 232 227 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)); 237 235 fibril_mutex_lock(&user->guard); 238 236 user->task_finished = true; … … 249 247 task_exit_t task_exit; 250 248 int task_retval; 251 task_wait( task, &task_exit, &task_retval);249 task_wait(&wait, &task_exit, &task_retval); 252 250 telnet_user_log(user, "%s terminated %s, exit code %d.", APP_GETTERM, 253 251 task_exit == TASK_EXIT_NORMAL ? "normally" : "unexpectedly",
Note:
See TracChangeset
for help on using the changeset viewer.