Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/task.c

    rd9fae235 r63f8966  
    7070 * loader API.
    7171 *
    72  * @param path Pathname of the binary to execute.
    73  * @param argv Command-line arguments.
    74  * @param err  If not NULL, the error value is stored here.
     72 * @param path pathname of the binary to execute
     73 * @param argv command-line arguments
    7574 *
    7675 * @return ID of the newly created task or zero on error.
    7776 *
    7877 */
    79 task_id_t task_spawn(const char *path, const char *const args[], int *err)
     78task_id_t task_spawn(const char *path, const char *const args[])
    8079{
    8180        /* Connect to a program loader. */
    8281        loader_t *ldr = loader_connect();
    83         if (ldr == NULL) {
    84                 if (err != NULL)
    85                         *err = EREFUSED;
    86                
     82        if (ldr == NULL)
    8783                return 0;
    88         }
    8984       
    9085        /* Get task ID. */
     
    148143        /* Success */
    149144        free(ldr);
    150        
    151         if (err != NULL)
    152                 *err = EOK;
    153        
    154145        return task_id;
    155146       
     
    158149        loader_abort(ldr);
    159150        free(ldr);
    160        
    161         if (err != NULL)
    162                 *err = rc;
    163151       
    164152        return 0;
Note: See TracChangeset for help on using the changeset viewer.