syscalls: improve printf before child execl
This commit is contained in:
parent
c57170a241
commit
5cdd227424
@ -33,7 +33,7 @@ int main(int argc, char **argv) {
|
||||
/* Prepare to hand over control over to ls,
|
||||
with the arguments "-la" */
|
||||
char *command = "/bin/ls", *argv1 = "-la";
|
||||
printf("[CHILD ]: execl(%s, %s, NULL);\n", command, argv1);
|
||||
printf("[CHILD ]: execl(%s, %s, %s, NULL);\n", command, command, argv1);
|
||||
/* execl takes the command, the arguments,
|
||||
and a null-pointer terminator argument.
|
||||
argv[0] is the path to the command
|
||||
|
Loading…
Reference in New Issue
Block a user