RIL 守护进程 PID 文件管理
More...
Go to the source code of this file.
RIL 守护进程 PID 文件管理
- Version
- 1.0.0
- Date
- 2026-07-18
- Copyright
- Copyright © 2026 Shenzhen One IOT World Co., Ltd. All rights reserved.
◆ ril_pidfile_acquire()
| int ril_pidfile_acquire |
( |
ril_pidfile_t * | pidfile, |
|
|
const char * | path ) |
获取 PID 文件所有权并写入当前进程号。
- Parameters
-
| pidfile | PID 文件上下文。 |
| path | PID 文件路径。 |
- Returns
- TBOX_OK 成功,其他值失败。
◆ ril_pidfile_release()
| void ril_pidfile_release |
( |
ril_pidfile_t * | pidfile, |
|
|
const char * | path ) |
释放 PID 文件所有权并删除本进程持有的文件。
- Parameters
-
| pidfile | PID 文件上下文。 |
| path | PID 文件路径。 |