LUXURISE's recent timeline updates
LUXURISE

LUXURISE

V2EX member #418199, joined on 2019-06-03 13:29:13 +08:00
LUXURISE's recent replies
如果是用的 python3.3 及以上版本的话,可以使用 signal.sigwaitinfo
返回结果中包含 siginfo_t 这个数据结构,其中有 si_pid,si_uid 字段,分别为信号发出的 pid 和 用户 id
我简单测试了一下,可以拿到 pid
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2786 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 15ms · UTC 02:43 · PVG 10:43 · LAX 19:43 · JFK 22:43
♥ Do have faith in what you're doing.