#11797: Calling getpid() from constructor of global static object returns 0 ----------------------------+---------------------------- Reporter: tokoe | Owner: nobody Type: bug | Status: new Priority: normal | Milestone: R1 Component: System/POSIX | Version: R1/Development Resolution: | Keywords: Blocked By: | Blocking: Has a Patch: 0 | Platform: x86 ----------------------------+---------------------------- Comment (by korli): This ID is local and initialized by the function calling the main(), after global constructors. Caching this ID is probably a "bad idea" anyway. -- Ticket URL: <https://dev.haiku-os.org/ticket/11797#comment:1> Haiku <https://dev.haiku-os.org> Haiku - the operating system.