Changeset 4470e26 in mainline for uspace/lib/libc/generic/task.c
- Timestamp:
- 2008-09-24T10:57:21Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0993087
- Parents:
- 45454e9b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/generic/task.c
r45454e9b r4470e26 64 64 int rc; 65 65 66 /* Spawn a program loader */66 /* Spawn a program loader. */ 67 67 ldr = loader_spawn(); 68 68 if (ldr == NULL) … … 74 74 goto error; 75 75 76 /* Send program pathname */76 /* Send program pathname. */ 77 77 rc = loader_set_pathname(ldr, path); 78 78 if (rc != EOK) 79 79 goto error; 80 80 81 /* Send arguments */81 /* Send arguments. */ 82 82 rc = loader_set_args(ldr, argv); 83 83 if (rc != EOK) 84 84 goto error; 85 85 86 /* Request loader to start the program */ 87 rc = loader_start_program(ldr); 86 /* Load the program. */ 87 rc = loader_load_program(ldr); 88 if (rc != EOK) 89 goto error; 90 91 /* Run it. */ 92 /* Load the program. */ 93 rc = loader_run(ldr); 88 94 if (rc != EOK) 89 95 goto error; 90 96 91 97 /* Success */ 98 99 free(ldr); 92 100 return task_id; 93 101 … … 95 103 error: 96 104 loader_abort(ldr); 105 free(ldr); 106 97 107 return 0; 98 108 }
Note:
See TracChangeset
for help on using the changeset viewer.