Changes in uspace/app/redir/redir.c [d9fae235:19f857a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/redir/redir.c
rd9fae235 r19f857a 42 42 #include <stdio.h> 43 43 #include <task.h> 44 #include <str_error.h>45 46 #define NAME "redir"47 44 48 45 static void usage(void) 49 46 { 50 printf("Usage: %s [-i <stdin>] [-o <stdout>] [-e <stderr>] -- <cmd> [args ...]\n", 51 NAME); 47 printf("Usage: redir [-i <stdin>] [-o <stdout>] [-e <stderr>] -- <cmd> [args ...]\n"); 52 48 } 53 49 … … 88 84 args[argc] = NULL; 89 85 90 int err; 91 task_id_t id = task_spawn(argv[0], args, &err); 86 task_id_t id = task_spawn(argv[0], args); 92 87 93 88 free(args); 94 89 95 90 if (id == 0) 96 printf("%s: Error spawning %s (%s)\n", NAME, argv[0], 97 str_error(err)); 91 printf("Error spawning %s\n", argv[0]); 98 92 99 93 return id;
Note:
See TracChangeset
for help on using the changeset viewer.