Changes in uspace/app/getterm/getterm.c [0485135:d9fae235] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/getterm/getterm.c
r0485135 rd9fae235 41 41 #include <task.h> 42 42 #include <str_error.h> 43 #include <errno.h>44 43 #include "version.h" 45 44 … … 75 74 static task_id_t spawn(const char *fname) 76 75 { 77 task_id_t id; 78 int rc; 76 const char *args[2]; 79 77 80 rc = task_spawnl(&id, fname, fname, NULL); 81 if (rc != EOK) { 78 args[0] = fname; 79 args[1] = NULL; 80 81 int err; 82 task_id_t id = task_spawn(fname, args, &err); 83 84 if (id == 0) 82 85 printf("%s: Error spawning %s (%s)\n", APP_NAME, fname, 83 str_error(rc)); 84 return 0; 85 } 86 str_error(err)); 86 87 87 88 return id;
Note:
See TracChangeset
for help on using the changeset viewer.