- printf("[%d] Hey Jude\n", getpid());
- //execl("/bin/ls", "ls", (char*)NULL);
+ execl("/bin/ls", "ls", (char*)NULL);
while (read(pipefd[0], &tmpbuf, 1) > 0) {
write(STDOUT_FILENO, &tmpbuf, 1);
}
while (read(pipefd[0], &tmpbuf, 1) > 0) {
write(STDOUT_FILENO, &tmpbuf, 1);
}