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]
/
TD1
/
part_two
/
exo.c
diff --git
a/TD1/part_two/exo.c
b/TD1/part_two/exo.c
index 430e74c089d001f28eb25490c34b7dc2914b776a..2f5e419062f7be8cdbbb37bc8ab14e23916da617 100644
(file)
--- a/
TD1/part_two/exo.c
+++ b/
TD1/part_two/exo.c
@@
-1,11
+1,11
@@
-#include <sys/types.h>
-#include <sys/wait.h>
-
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#include <sys/types.h>
+#include <sys/wait.h>
+
void show_proc_pids() {
pid_t current_pid = getpid();
pid_t parent_pid = getppid();
void show_proc_pids() {
pid_t current_pid = getpid();
pid_t parent_pid = getppid();
@@
-48,7
+48,7
@@
int main() {
wait(NULL);
exit(EXIT_SUCCESS);
}
wait(NULL);
exit(EXIT_SUCCESS);
}
-
+
/* unreachable code */
return EXIT_SUCCESS;
}
/* unreachable code */
return EXIT_SUCCESS;
}