問題タブ [defunct]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
python - Pythonは、機能していない子プロセス自体を殺します
マルチプロセッシング python lib を使用しています。
新しいプロセスを作成し、ジョブを実行します。
仕事を終えた後、exit(0) を呼び出すだけですが、プロセスは「機能していない」状態です。「kill -9 PID」、「kill -18 PID」などのように強制終了しようとしましたが、親プロセスを維持して子プロセスを強制終了できません。
どうすればいいですか?これは私のpythonコードです
「プロセス.py」
それは私のプロセスリストです(ps -al)
ライブの親プロセス (19295) を保持し、子の機能していないプロセス 19339 を強制終了したいのですが、
どうすればよいですか?