{"id":1177994,"date":"2023-09-01T10:46:06","date_gmt":"2023-09-01T14:46:06","guid":{"rendered":"https:\/\/www.prime-wow.com\/?p=1177994"},"modified":"2023-09-01T10:46:06","modified_gmt":"2023-09-01T14:46:06","slug":"race-free-process-creation-in-the-gnu-c-library","status":"publish","type":"post","link":"https:\/\/www.prime-wow.com\/?p=1177994","title":{"rendered":"[$] Race-free process creation in the GNU C Library"},"content":{"rendered":"<p>The <a href=\"https:\/\/lwn.net\/Articles\/794707\/\">pidfd API<\/a> has been added to the kernel<br \/>\nover the last several years to provide a race-free way for processes to<br \/>\nrefer to each other.  While the <a href=\"https:\/\/www.gnu.org\/software\/libc\/\">GNU C Library<\/a> (glibc) gained<br \/>\nbasic pidfd support with the 2.36 release in 2022, it still lacks a<br \/>\ncomplete solution for race-free process creation.  <a href=\"https:\/\/lwn.net\/ml\/libc-alpha\/20230706134508.422526-1-adhemerval.zanella@linaro.org\/\">This<br \/>\npatch set<\/a> from Adhemerval Zanella seems likely to fill that gap in the<br \/>\nnear future, though, with an extension to the <a href=\"https:\/\/man7.org\/linux\/man-pages\/man3\/posix_spawn.3.html\"><tt>posix_spawn()<\/tt><\/a><br \/>\nAPI.&#013;<br \/>\n&#013;<br \/>\nSource: LWN.net &#8211; <a href=\"https:\/\/lwn.net\/Articles\/943022\/\" target=\"_blank\" rel=\"noopener\">[$] Race-free process creation in the GNU C Library<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The pidfd API has been added to the kernel over the last several years to provide a race-free way for processes to refer to each other. While the GNU C Library (glibc) gained basic pidfd support with the 2.36 release &hellip; <a href=\"https:\/\/www.prime-wow.com\/?p=1177994\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[72],"tags":[75],"class_list":["post-1177994","post","type-post","status-publish","format-standard","hentry","category-linux","tag-linux"],"_links":{"self":[{"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=\/wp\/v2\/posts\/1177994","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1177994"}],"version-history":[{"count":0,"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=\/wp\/v2\/posts\/1177994\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1177994"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1177994"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1177994"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}