{"id":107198,"date":"2026-09-19T04:21:13","date_gmt":"2026-09-18T20:21:13","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/107198.html"},"modified":"2026-09-19T04:21:13","modified_gmt":"2026-09-18T20:21:13","slug":"boost-process-v2-%e5%9c%a8%e6%97%a7%e5%86%85%e6%a0%b8%e4%b8%8a%e6%8a%a5-assign-bad-file-descriptor","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/107198.html","title":{"rendered":"Boost.Process v2 \u5728\u65e7\u5185\u6838\u4e0a\u62a5 `assign: Bad file descriptor`"},"content":{"rendered":"<h2>Boost.Process v2 \u5728\u65e7\u5185\u6838\u4e0a\u62a5 assign: Bad file descriptor<\/h2>\n<p>\u540c\u4e00\u4efd\u4e8c\u8fdb\u5236&#xff0c;\u5728 Linux 6.18 \u4e0a\u6b63\u5e38&#xff0c;\u5728 Linux 3.10 \u4e0a\u542f\u52a8\u5b50\u8fdb\u7a0b\u5fc5\u7136\u5931\u8d25\u3002<\/p>\n<h3>\u73b0\u8c61<\/h3>\n<p>\u542f\u52a8\u5b50\u8fdb\u7a0b\u65f6\u629b\u51fa\u5f02\u5e38&#xff1a;<\/p>\n<p>assign: Bad file descriptor [system:9 at \/usr\/local\/include\/boost\/asio\/detail\/impl\/reactive_descriptor_service.ipp:121 in function &#039;assign&#039;]<\/p>\n<ul>\n<li>\u73af\u5883&#xff1a;Boost 1.92.0\u3001C&#043;&#043;17\u3001Linux 6.18&#xff08;\u6b63\u5e38&#xff09;\/ Linux 3.10&#xff08;\u5f02\u5e38&#xff09;<\/li>\n<li>\u590d\u73b0&#xff1a;\u65e7\u5185\u6838\u4e0a 100% \u5931\u8d25&#xff0c;\u4e0e\u4e1a\u52a1\u903b\u8f91\u65e0\u5173<\/li>\n<li>system:9 \u5373 EBADF<\/li>\n<\/ul>\n<h3>\u539f\u56e0<\/h3>\n<p>Boost.Process v2 \u662f\u5426\u4f7f\u7528 pidfd_open&#xff0c;\u662f\u7f16\u8bd1\u671f\u51b3\u5b9a\u7684&#xff1a;<\/p>\n<p><span class=\"token comment\">\/\/ boost\/process\/v2\/detail\/config.hpp<\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">if<\/span> <span class=\"token expression\"><span class=\"token function\">defined<\/span><span class=\"token punctuation\">(<\/span>SYS_pidfd_open<span class=\"token punctuation\">)<\/span>          <\/span><span class=\"token comment\">\/\/ \u53ea\u68c0\u67e5\u6784\u5efa\u673a\u7684 kernel headers<\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">define<\/span> <span class=\"token macro-name\">BOOST_PROCESS_V2_PIDFD_OPEN<\/span> <span class=\"token expression\"><span class=\"token number\">1<\/span><\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">endif<\/span><\/span><\/p>\n<p>\u800c\u8c03\u7528\u662f\u8fd0\u884c\u671f\u65e0\u6761\u4ef6\u7684&#xff1a;<\/p>\n<p><span class=\"token comment\">\/\/ boost\/process\/v2\/detail\/process_handle_fd.hpp:70<\/span><br \/>\n<span class=\"token function\">basic_process_handle_fd<\/span><span class=\"token punctuation\">(<\/span>executor_type executor<span class=\"token punctuation\">,<\/span> pid_type pid<span class=\"token punctuation\">)<\/span><br \/>\n        <span class=\"token operator\">:<\/span> <span class=\"token function\">pid_<\/span><span class=\"token punctuation\">(<\/span>pid<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token function\">descriptor_<\/span><span class=\"token punctuation\">(<\/span>executor<span class=\"token punctuation\">,<\/span> <span class=\"token function\">syscall<\/span><span class=\"token punctuation\">(<\/span>SYS_pidfd_open<span class=\"token punctuation\">,<\/span> pid<span class=\"token punctuation\">,<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span>descriptor_<span class=\"token punctuation\">.<\/span><span class=\"token function\">native_handle<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&#061;&#061;<\/span> <span class=\"token operator\">&#8211;<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">)<\/span>      <span class=\"token comment\">\/\/ \u6c38\u8fdc\u6765\u4e0d\u53ca\u6267\u884c<\/span><br \/>\n        detail<span class=\"token double-colon punctuation\">::<\/span><span class=\"token function\">throw_error<\/span><span class=\"token punctuation\">(<\/span>detail<span class=\"token double-colon punctuation\">::<\/span><span class=\"token function\">get_last_error<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;wait(pid)&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>pidfd_open&#xff08;syscall 434&#xff09;\u662f Linux 5.3 \u624d\u5f15\u5165\u7684\u3002\u5728 3.10 \u4e0a\u5b83\u8fd4\u56de -1&#xff08;ENOSYS&#xff09;&#xff0c;<br \/>\n\u800c\u8fd9\u4e2a -1 \u5728\u6210\u5458\u521d\u59cb\u5316\u5217\u8868\u91cc\u5c31\u88ab\u5f53\u4f5c\u5408\u6cd5 fd \u4ea4\u7ed9\u4e86<br \/>\nasio::posix::basic_stream_descriptor&#xff0c;\u6700\u7ec8 asio \u7684<br \/>\nreactive_descriptor_service::assign() \u6267\u884c epoll_ctl(epfd, ADD, -1) \u5931\u8d25&#xff0c;\u629b\u51fa EBADF\u3002<\/p>\n<p>\u4e24\u4e2a\u5173\u952e\u70b9&#xff1a;<\/p>\n<li>Boost \u5176\u5b9e\u68c0\u67e5\u4e86\u8fd4\u56de\u503c&#xff0c;\u4f46 if (native_handle() &#061;&#061; -1) \u5199\u5728\u6784\u9020\u51fd\u6570\u4f53\u91cc&#xff0c;<br \/>\n\u800c syscall() \u5728\u6210\u5458\u521d\u59cb\u5316\u5217\u8868\u91cc&#xff0c;\u68c0\u67e5\u6c38\u8fdc\u6765\u4e0d\u53ca\u751f\u6548\u3002<\/li>\n<li>\u6240\u4ee5\u8fd9\u662f\u5178\u578b\u7684**\u300c\u7f16\u8bd1\u671f\u63a2\u6d4b \u2260 \u8fd0\u884c\u671f\u4fdd\u8bc1\u300d**&#xff1a;\u6784\u5efa\u673a\u5185\u6838\u65b0\u3001\u8fd0\u884c\u673a\u5185\u6838\u65e7\u65f6\u5fc5\u7136\u8e29\u4e2d\u3002<\/li>\n<h3>\u89e3\u51b3\u529e\u6cd5<\/h3>\n<p>\u7528 Boost \u5b98\u65b9\u5f00\u5173\u5173\u6389 pidfd \u8def\u5f84&#xff0c;\u56de\u9000\u5230\u53ef\u79fb\u690d\u7684 signal \u7248\u8fdb\u7a0b\u53e5\u67c4&#xff1a;<\/p>\n<p>if(UNIX AND NOT APPLE)<br \/>\n    add_compile_definitions(BOOST_PROCESS_V2_DISABLE_PIDFD_OPEN)<br \/>\nendif()<\/p>\n<p>\u653e\u5728\u9876\u5c42 CMakeLists.txt&#xff0c;\u8ba9\u6240\u6709 target \u90fd\u751f\u6548\u3002<\/p>\n<p>\u26a0\ufe0f \u8be5\u5b8f\u4f1a\u6539\u53d8 basic_process_handle \u7684\u5b9e\u9645\u7c7b\u578b&#xff0c;\u5fc5\u987b\u4fdd\u8bc1\u540c\u4e00\u4e8c\u8fdb\u5236\u5185\u6240\u6709<br \/>\n\u7ffb\u8bd1\u5355\u5143\u4e00\u81f4&#xff0c;\u5426\u5219\u662f ODR \u8fdd\u89c4\u3002\u56e0\u6b64\u8981\u7528\u76ee\u5f55\u7ea7\u7684 add_compile_definitions()&#xff0c;<br \/>\n\u4e0d\u8981\u53ea\u5728\u5355\u4e2a target \u4e0a\u7528 target_compile_definitions()\u3002<\/p>\n<p>\u5f71\u54cd\u8303\u56f4\u53ef\u63a7&#xff1a;fork\/exec\/stdio \u91cd\u5b9a\u5411\/process::id() \u5747\u4e0d\u53d8&#xff0c;<br \/>\n\u53ea\u662f Boost \u5185\u90e8\u7684\u7b49\u5f85\u5b9e\u73b0\u7531 pidfd \u8f6e\u8be2\u6539\u4e3a signal_set\u3002<\/p>\n<h3>\u9a8c\u8bc1<\/h3>\n<p>\u7f16\u8bd1\u4e00\u4e2a\u6700\u5c0f\u7a0b\u5e8f&#xff0c;\u786e\u8ba4\u5b9e\u9645\u8d70\u4e86\u54ea\u6761\u8def\u5f84&#xff1a;<\/p>\n<p><span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">if<\/span> <span class=\"token expression\"><span class=\"token function\">defined<\/span><span class=\"token punctuation\">(<\/span>BOOST_PROCESS_V2_PIDFD_OPEN<span class=\"token punctuation\">)<\/span><\/span><\/span><br \/>\n    <span class=\"token function\">printf<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;pidfd path ENABLED\\\\n&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">else<\/span><\/span><br \/>\n    <span class=\"token function\">printf<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;pidfd path DISABLED\\\\n&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">endif<\/span><\/span><br \/>\n<span class=\"token function\">printf<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;handle: %s\\\\n&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token keyword\">typeid<\/span><span class=\"token punctuation\">(<\/span>boost<span class=\"token double-colon punctuation\">::<\/span>process<span class=\"token double-colon punctuation\">::<\/span>v2<span class=\"token double-colon punctuation\">::<\/span>process<span class=\"token double-colon punctuation\">::<\/span>handle_type<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">name<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<table>\n<tr>\u7f16\u8bd1\u65b9\u5f0f\u53e5\u67c4\u7c7b\u578b\u7ed3\u679c<\/tr>\n<tbody>\n<tr>\n<td>\u9ed8\u8ba4<\/td>\n<td>basic_process_handle_fd<\/td>\n<td>pidfd \u8def\u5f84<\/td>\n<\/tr>\n<tr>\n<td>\u52a0\u5b8f<\/td>\n<td>basic_process_handle_signal<\/td>\n<td>\u5b50\u8fdb\u7a0b\u6b63\u5e38\u542f\u52a8&#xff0c;stdout \u4e0e\u9000\u51fa\u7801\u5747\u6b63\u786e<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u7ecf\u9a8c<\/h3>\n<ul>\n<li>\u300c\u540c\u4e00\u4e8c\u8fdb\u5236\u6362\u5185\u6838\u5c31\u6302\u300d\u2192 \u4f18\u5148\u6000\u7591 syscall \u5c42\u9762\u7684\u65b0\u7279\u6027<\/li>\n<li>\u7f16\u8bd1\u671f\u63a2\u6d4b\u5185\u6838\u80fd\u529b&#xff0c;\u4e0d\u80fd\u66ff\u4ee3\u8fd0\u884c\u671f\u68c0\u67e5<\/li>\n<li>\u5728\u6210\u5458\u521d\u59cb\u5316\u5217\u8868\u91cc\u8c03\u7528\u53ef\u80fd\u5931\u8d25\u7684\u51fd\u6570\u65f6&#xff0c;\u8fd4\u56de\u503c\u68c0\u67e5\u8981\u653e\u5728\u80fd\u751f\u6548\u7684\u4f4d\u7f6e<\/li>\n<li>\u4f18\u5148\u7528\u5e93\u63d0\u4f9b\u7684 *_DISABLE_* \u5b98\u65b9\u5f00\u5173&#xff0c;\u800c\u4e0d\u662f\u6253\u8865\u4e01<\/li>\n<li>\u4f1a\u6539\u53d8\u7c7b\u578b\u7684\u7f16\u8bd1\u5b8f&#xff0c;\u52a1\u5fc5\u786e\u8ba4\u4f5c\u7528\u57df\u8986\u76d6\u5168\u90e8\u7ffb\u8bd1\u5355\u5143<\/li>\n<\/ul>\n<h3>\u9644<\/h3>\n<p>Boost          1.92.0 (BOOST_VERSION &#061; 109200)<br \/>\npidfd_open     syscall 434&#xff0c;Linux 5.3 \u5f15\u5165<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Boost.Process v2 \u5728\u65e7\u5185\u6838\u4e0a\u62a5 assign: Bad file descriptor<br \/>\n\u540c\u4e00\u4efd\u4e8c\u8fdb\u5236&#xff0c;\u5728 Linux 6.18 \u4e0a\u6b63\u5e38&#xff0c;\u5728 Linux 3.10 \u4e0a\u542f\u52a8\u5b50\u8fdb\u7a0b\u5fc5\u7136\u5931\u8d25\u3002<br \/>\n\u73b0\u8c61<br \/>\n\u542f\u52a8\u5b50\u8fdb\u7a0b\u65f6\u629b\u51fa\u5f02\u5e38&#xff1a;<br \/>\nassign: Bad file descriptor [system:9 at \/usr\/local\/include\/boost\/asio\/detail\/impl\/reactive_descriptor_<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[55],"topic":[],"class_list":["post-107198","post","type-post","status-publish","format-standard","hentry","category-server","tag-c"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Boost.Process v2 \u5728\u65e7\u5185\u6838\u4e0a\u62a5 `assign: Bad file descriptor` - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/107198.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Boost.Process v2 \u5728\u65e7\u5185\u6838\u4e0a\u62a5 `assign: Bad file descriptor` - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"Boost.Process v2 \u5728\u65e7\u5185\u6838\u4e0a\u62a5 assign: Bad file descriptor \u540c\u4e00\u4efd\u4e8c\u8fdb\u5236&#xff0c;\u5728 Linux 6.18 \u4e0a\u6b63\u5e38&#xff0c;\u5728 Linux 3.10 \u4e0a\u542f\u52a8\u5b50\u8fdb\u7a0b\u5fc5\u7136\u5931\u8d25\u3002 \u73b0\u8c61 \u542f\u52a8\u5b50\u8fdb\u7a0b\u65f6\u629b\u51fa\u5f02\u5e38&#xff1a; assign: Bad file descriptor [system:9 at \/usr\/local\/include\/boost\/asio\/detail\/impl\/reactive_descriptor_\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/107198.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-18T20:21:13+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/107198.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/107198.html\",\"name\":\"Boost.Process v2 \u5728\u65e7\u5185\u6838\u4e0a\u62a5 `assign: Bad file descriptor` - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-18T20:21:13+00:00\",\"dateModified\":\"2026-09-18T20:21:13+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/107198.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/107198.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/107198.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Boost.Process v2 \u5728\u65e7\u5185\u6838\u4e0a\u62a5 `assign: Bad file descriptor`\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Boost.Process v2 \u5728\u65e7\u5185\u6838\u4e0a\u62a5 `assign: Bad file descriptor` - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/107198.html","og_locale":"zh_CN","og_type":"article","og_title":"Boost.Process v2 \u5728\u65e7\u5185\u6838\u4e0a\u62a5 `assign: Bad file descriptor` - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"Boost.Process v2 \u5728\u65e7\u5185\u6838\u4e0a\u62a5 assign: Bad file descriptor \u540c\u4e00\u4efd\u4e8c\u8fdb\u5236&#xff0c;\u5728 Linux 6.18 \u4e0a\u6b63\u5e38&#xff0c;\u5728 Linux 3.10 \u4e0a\u542f\u52a8\u5b50\u8fdb\u7a0b\u5fc5\u7136\u5931\u8d25\u3002 \u73b0\u8c61 \u542f\u52a8\u5b50\u8fdb\u7a0b\u65f6\u629b\u51fa\u5f02\u5e38&#xff1a; assign: Bad file descriptor [system:9 at \/usr\/local\/include\/boost\/asio\/detail\/impl\/reactive_descriptor_","og_url":"https:\/\/www.wsisp.com\/helps\/107198.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-18T20:21:13+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/107198.html","url":"https:\/\/www.wsisp.com\/helps\/107198.html","name":"Boost.Process v2 \u5728\u65e7\u5185\u6838\u4e0a\u62a5 `assign: Bad file descriptor` - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-18T20:21:13+00:00","dateModified":"2026-09-18T20:21:13+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/107198.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/107198.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/107198.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Boost.Process v2 \u5728\u65e7\u5185\u6838\u4e0a\u62a5 `assign: Bad file descriptor`"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/107198","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=107198"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/107198\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=107198"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=107198"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=107198"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=107198"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}