diff --git a/src/kernel/libroot/posix/unistd/Jamfile b/src/kernel/libroot/posix/unistd/Jamfile index c868819912..b0e7da586e 100644 --- a/src/kernel/libroot/posix/unistd/Jamfile +++ b/src/kernel/libroot/posix/unistd/Jamfile @@ -17,6 +17,7 @@ KernelMergeObject posix_unistd.o : <$(SOURCE_GRIST)>mount.c <$(SOURCE_GRIST)>open.c <$(SOURCE_GRIST)>pipe.c + <$(SOURCE_GRIST)>process.c <$(SOURCE_GRIST)>read.c <$(SOURCE_GRIST)>sleep.c <$(SOURCE_GRIST)>terminal.c diff --git a/src/kernel/libroot/posix/unistd/process.c b/src/kernel/libroot/posix/unistd/process.c index 828091f366..ba7309f2ef 100644 --- a/src/kernel/libroot/posix/unistd/process.c +++ b/src/kernel/libroot/posix/unistd/process.c @@ -10,6 +10,9 @@ #include +extern thread_id __main_thread_id; + + // ToDo: implement the process ID functions for real! @@ -23,7 +26,8 @@ getpgrp(void) pid_t getpid(void) { - return 0; + // this one returns the ID of the main thread + return __main_thread_id; }