<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Process Groups on 每日拍拍</title>
    <link>https://dailypypy.org/tags/process-groups/</link>
    <description>Recent content in Process Groups on 每日拍拍</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh-tw</language>
    <copyright>© 2026 每日拍拍</copyright>
    <lastBuildDate>Sun, 08 Nov 2026 12:41:00 +0800</lastBuildDate><atom:link href="https://dailypypy.org/tags/process-groups/index.xml" rel="self" type="application/rss+xml" />
    <follow_challenge>
      <feedId>155076163427069952</feedId>
      <userId>154825760438254592</userId>
    </follow_challenge>
    
    
    <item>
      <title>Python subprocess 超時治理：POSIX Process Group、升級終止與輸出收尾</title>
      <link>https://dailypypy.org/learn/python-subprocess-timeout-process-groups/</link>
      <pubDate>Sun, 08 Nov 2026 12:41:00 +0800</pubDate>
      
      <guid>https://dailypypy.org/learn/python-subprocess-timeout-process-groups/</guid>
      <description>&lt;!---
1440x768
prompt: masterpiece, best quality, highres, clean anime illustration, japanese anime style, soft shading, flat color design, 1girl, black hair, green eyes, white off-shoulder shirt, black short skirt, wide three-quarter full body shot from a gentle low angle, standing with arms loosely crossed at waist level, determined warm smile, looking at viewer, pastel dusty rose background, neat composition, detailed eyes, cute and smart vibe, minimal background, polished illustration, no text
negative prompt: worst quality, bad eye, bad hand, extra limbs, manga, multiple views, monochrome, text, signature
dedup note: 215 current sources and weekly-plan current/recent/Already Published entries checked before drafting. This specific follow-up to ../python-subprocess/ owns owned POSIX process-group supervision, TERM/grace/KILL, leader observation without reaping, bounded pipe draining and descendant teardown fixtures. Not generic run/Popen/streaming, ../python-shlex/ argument lexing, asyncio queue shutdown or a terminal log viewer.
source check: Python 3.14 subprocess/os and selectors official references reviewed; macOS Python 3.14.3 clean-reader unittest (6 scenario cases), 8 additional boundary checks, all 6 rendered blocks, and 1440x768 cover visual inspection passed. Advisory prose 5-gram maximum 0.020855 versus shlex; semantic follow-up boundary reviewed.
publication note: Required randomized daytime date retained; publishDate permits the authorized morning release with buildFuture=false.
---&gt;

&lt;h2 class=&#34;relative group&#34;&gt;一. 前言：命令超時了，為什麼工作還在跑？ 
    &lt;div id=&#34;一-前言命令超時了為什麼工作還在跑&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700&#34;
            style=&#34;text-decoration-line: none !important;&#34; href=&#34;#%e4%b8%80-%e5%89%8d%e8%a8%80%e5%91%bd%e4%bb%a4%e8%b6%85%e6%99%82%e4%ba%86%e7%82%ba%e4%bb%80%e9%ba%bc%e5%b7%a5%e4%bd%9c%e9%82%84%e5%9c%a8%e8%b7%91&#34; aria-label=&#34;定位點&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h2&gt;
&lt;p&gt;嗨，我是拍拍君。
你替外部命令設了 timeout，終端機也印出「已超時」。
可是背景 worker 還在寫檔，下一輪任務又開了一份。&lt;/p&gt;</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://dailypypy.org/learn/python-subprocess-timeout-process-groups/featured.png" />
    </item>
    
  </channel>
</rss>
