X-Git-Url: https://git.piment-noir.org/?p=TD_SE.git;a=blobdiff_plain;f=thread-pid%2Fthread-pid.c;fp=thread-pid%2Fthread-pid.c;h=648cd82c33ba39f0b64ac3a00a9a5754dde36bd5;hp=a993c777d5a11766f3f8ba3c3482be840e1bc6f2;hb=6773299b929233e5d4f21cfbb65ad49e3e3278b3;hpb=23ab6af8cd97e879765f6033d738b6112dc028aa diff --git a/thread-pid/thread-pid.c b/thread-pid/thread-pid.c index a993c77..648cd82 100644 --- a/thread-pid/thread-pid.c +++ b/thread-pid/thread-pid.c @@ -4,7 +4,7 @@ static void* fonction(void* args) { printf("pid du thread fils = %d\n", getpid()); - while(1); // forever + while (1); // forever return NULL; } @@ -13,6 +13,6 @@ int main() { printf("pid de main = %d\n", getpid()); pthread_create(&thread, NULL, &fonction, NULL); - while(1); // forever + while (1); // forever return 0; }