< 返回版块

scrope 发表于 2021-08-31 11:38

Tags:hook

请教一下进程关闭时的回调函数怎么实现?

评论区

写评论
Bai-Jinlin 2021-09-03 17:36

ctor那样的?

yuchunzhou 2021-08-31 18:31

用signal

作者 scrope 2021-08-31 16:32

感谢分享,目前没有纯Rust的实现是吧?

--
👇
open-trade: https://github.com/rustdesk/rustdesk/blob/bb25964307a87064cb2600f00dbeece0f0f78785/src/server/input_service.rs#L222

open-trade 2021-08-31 16:10

https://github.com/rustdesk/rustdesk/blob/bb25964307a87064cb2600f00dbeece0f0f78785/src/server/input_service.rs#L222

1 共 4 条评论, 1 页