Home
Sign Up
Sign In
LUXURISE's recent timeline updates
LUXURISE
V2EX member #418199, joined on 2019-06-03 13:29:13 +08:00
LUXURISE
提问
技术话题
好玩
工作信息
交易信息
城市相关
LUXURISE's recent replies
Jul 27, 2019
Replied to a topic by
zhuweiping
›
Python
›
怎么在 Python 进程收到 SIGTERM 信号时记录下发出信号的进程的 pid?
如果是用的 python3.3 及以上版本的话,可以使用 signal.sigwaitinfo
返回结果中包含 siginfo_t 这个数据结构,其中有 si_pid,si_uid 字段,分别为信号发出的 pid 和 用户 id
我简单测试了一下,可以拿到 pid
»
More replies by LUXURISE
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
2427 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 14ms ·
UTC 15:42
·
PVG 23:42
·
LAX 08:42
·
JFK 11:42
♥ Do have faith in what you're doing.
❯