Changes in uspace/srv/hid/remcons/remcons.c [902f0906:1c635d6] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/remcons/remcons.c
r902f0906 r1c635d6 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.