repositories
/
TD_IML.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
IML TD(take2):
[TD_IML.git]
/
TD2
/
exercise3
/
exercise.c
diff --git
a/TD2/exercise3/exercise.c
b/TD2/exercise3/exercise.c
index c4e9e4102b0445357a0edacbc31da488abedac5a..1d20fc50192850bce84bb111c0509dcf84da7ba3 100644
(file)
--- a/
TD2/exercise3/exercise.c
+++ b/
TD2/exercise3/exercise.c
@@
-23,8
+23,7
@@
int main() {
} else if (cpid == 0) {
close(pipefd[0]);
dup2(pipefd[1], STDOUT_FILENO);
- printf("[%d] Hey Jude\n", getpid());
- //execl("/bin/ls", "ls", (char*)NULL);
+ execl("/bin/ls", "ls", (char*)NULL);
close(pipefd[1]);
exit(EXIT_SUCCESS);
} else {