Changeset 613d644 in mainline for uspace/app
- Timestamp:
- 2014-08-26T15:30:15Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0b811da2, 2cc1ec0, da904f7
- Parents:
- cb1fd3e (diff), 1c635d6 (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. - Location:
- uspace/app
- Files:
-
- 8 edited
-
bdsh/exec.c (modified) (3 diffs)
-
getterm/getterm.c (modified) (2 diffs)
-
init/init.c (modified) (6 diffs)
-
redir/redir.c (modified) (3 diffs)
-
sbi/src/os/helenos.c (modified) (2 diffs)
-
trace/trace.c (modified) (1 diff)
-
viewer/viewer.c (modified) (1 diff)
-
vlaunch/vlaunch.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/exec.c
rcb1fd3e r613d644 97 97 { 98 98 task_id_t tid; 99 task_wait_t twait; 99 100 task_exit_t texit; 100 101 char *tmp; … … 121 122 file_handles_p[i] = NULL; 122 123 123 rc = task_spawnvf(&tid, tmp, (const char **) argv, file_handles_p);124 rc = task_spawnvf(&tid, &twait, tmp, (const char **) argv, file_handles_p); 124 125 free(tmp); 125 126 … … 130 131 } 131 132 132 rc = task_wait( tid, &texit, &retval);133 rc = task_wait(&twait, &texit, &retval); 133 134 if (rc != EOK) { 134 135 printf("%s: Failed waiting for command (%s)\n", progname, -
uspace/app/getterm/getterm.c
rcb1fd3e r613d644 165 165 166 166 task_id_t id; 167 task_wait_t twait; 167 168 168 int rc = task_spawnv(&id, cmd, (const char * const *) args);169 int rc = task_spawnv(&id, &twait, cmd, (const char * const *) args); 169 170 if (rc != EOK) { 170 171 printf("%s: Error spawning %s (%s)\n", APP_NAME, cmd, … … 175 176 task_exit_t texit; 176 177 int retval; 177 rc = task_wait( id, &texit, &retval);178 rc = task_wait(&twait, &texit, &retval); 178 179 if (rc != EOK) { 179 180 printf("%s: Error waiting for %s (%s)\n", APP_NAME, cmd, -
uspace/app/init/init.c
rcb1fd3e r613d644 172 172 va_start(ap, path); 173 173 task_id_t id; 174 int rc = task_spawn(&id, path, cnt, ap); 174 task_wait_t wait; 175 int rc = task_spawn(&id, &wait, path, cnt, ap); 175 176 va_end(ap); 176 177 … … 189 190 task_exit_t texit; 190 191 int retval; 191 rc = task_wait( id, &texit, &retval);192 rc = task_wait(&wait, &texit, &retval); 192 193 if (rc != EOK) { 193 194 printf("%s: Error waiting for %s (%s)\n", NAME, path, … … 253 254 254 255 task_id_t id; 255 int rc = task_spawnl(&id, app, app, winreg, NULL); 256 task_wait_t wait; 257 int rc = task_spawnl(&id, &wait, app, app, winreg, NULL); 256 258 if (rc != EOK) { 257 259 printf("%s: Error spawning %s %s (%s)\n", NAME, app, … … 262 264 task_exit_t texit; 263 265 int retval; 264 rc = task_wait( id, &texit, &retval);266 rc = task_wait(&wait, &texit, &retval); 265 267 if ((rc != EOK) || (texit != TASK_EXIT_NORMAL)) { 266 268 printf("%s: Error retrieving retval from %s (%s)\n", NAME, … … 278 280 APP_GETTERM, svc, LOCFS_MOUNT_POINT, app); 279 281 280 int rc = task_spawnl(NULL, APP_GETTERM, APP_GETTERM, svc,282 int rc = task_spawnl(NULL, NULL, APP_GETTERM, APP_GETTERM, svc, 281 283 LOCFS_MOUNT_POINT, "--msg", "--wait", "--", app, NULL); 282 284 if (rc != EOK) … … 287 289 APP_GETTERM, svc, LOCFS_MOUNT_POINT, app); 288 290 289 int rc = task_spawnl(NULL, APP_GETTERM, APP_GETTERM, svc,291 int rc = task_spawnl(NULL, NULL, APP_GETTERM, APP_GETTERM, svc, 290 292 LOCFS_MOUNT_POINT, "--wait", "--", app, NULL); 291 293 if (rc != EOK) -
uspace/app/redir/redir.c
rcb1fd3e r613d644 75 75 } 76 76 77 static task_id_t spawn( int argc, char *argv[])77 static task_id_t spawn(task_wait_t *wait, int argc, char *argv[]) 78 78 { 79 79 const char **args; … … 93 93 args[argc] = NULL; 94 94 95 rc = task_spawnv(&id, argv[0], args);95 rc = task_spawnv(&id, wait, argv[0], args); 96 96 97 97 free(args); … … 152 152 */ 153 153 setvbuf(stdout, NULL, _IOLBF, BUFSIZ); 154 155 task_id_t id = spawn(argc - i, argv + i); 154 155 task_wait_t wait; 156 task_id_t id = spawn(&wait, argc - i, argv + i); 156 157 157 158 if (id != 0) { 158 159 task_exit_t texit; 159 160 int retval; 160 task_wait( id, &texit, &retval);161 task_wait(&wait, &texit, &retval); 161 162 162 163 return retval; -
uspace/app/sbi/src/os/helenos.c
rcb1fd3e r613d644 250 250 { 251 251 task_id_t tid; 252 task_wait_t twait; 252 253 task_exit_t texit; 253 254 int rc, retval; 254 255 255 rc = task_spawnv(&tid, cmd[0], (char const * const *) cmd);256 rc = task_spawnv(&tid, &twait, cmd[0], (char const * const *) cmd); 256 257 if (rc != EOK) { 257 258 printf("Error: Failed spawning '%s' (%s).\n", cmd[0], … … 261 262 262 263 /* XXX Handle exit status and return value. */ 263 rc = task_wait( tid, &texit, &retval);264 rc = task_wait(&twait, &texit, &retval); 264 265 (void) rc; 265 266 -
uspace/app/trace/trace.c
rcb1fd3e r613d644 876 876 printf("Waiting for task to exit.\n"); 877 877 878 rc = task_wait (task_id, &texit, &retval);878 rc = task_wait_task_id(task_id, &texit, &retval); 879 879 if (rc != EOK) { 880 880 printf("Failed waiting for task.\n"); -
uspace/app/viewer/viewer.c
rcb1fd3e r613d644 44 44 #include <surface.h> 45 45 #include <codec/tga.h> 46 #include <task.h> 46 47 47 48 #define NAME "viewer" -
uspace/app/vlaunch/vlaunch.c
rcb1fd3e r613d644 94 94 95 95 task_id_t id; 96 int rc = task_spawnl(&id, app, app, winreg, NULL); 96 task_wait_t wait; 97 int rc = task_spawnl(&id, &wait, app, app, winreg, NULL); 97 98 if (rc != EOK) { 98 99 printf("%s: Error spawning %s %s (%s)\n", NAME, app, … … 103 104 task_exit_t texit; 104 105 int retval; 105 rc = task_wait( id, &texit, &retval);106 rc = task_wait(&wait, &texit, &retval); 106 107 if ((rc != EOK) || (texit != TASK_EXIT_NORMAL)) { 107 108 printf("%s: Error retrieving retval from %s (%s)\n", NAME,
Note:
See TracChangeset
for help on using the changeset viewer.
