Changeset 0485135 in mainline for uspace/app/netstart/netstart.c
- Timestamp:
- 2010-11-05T19:53:00Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0b81cad0
- Parents:
- a66e2993
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/netstart/netstart.c
ra66e2993 r0485135 57 57 static bool spawn(const char *desc, const char *path) 58 58 { 59 int rc; 60 59 61 printf("%s: Spawning %s (%s)\n", NAME, desc, path); 60 61 const char *argv[2]; 62 63 argv[0] = path; 64 argv[1] = NULL; 65 66 int err; 67 if (task_spawn(path, argv, &err) == 0) { 62 rc = task_spawnl(NULL, path, path, NULL); 63 if (rc != EOK) { 68 64 fprintf(stderr, "%s: Error spawning %s (%s)\n", NAME, path, 69 str_error( err));65 str_error(rc)); 70 66 return false; 71 67 }
Note:
See TracChangeset
for help on using the changeset viewer.