Skip to content

Commit

Permalink
Update index.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Forsworns authored Aug 12, 2024
1 parent 6a6b2a1 commit cb608a7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion blog/zh/blogs/20240620/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ tags:

[[toc]]

我有一个命令行应用是这么写的
TL;DR
> 守护进程应该参考 [nvidia-persistenced](https://github.com/NVIDIA/nvidia-persistenced/blob/a17da42d9f5e0db228e9e95eb604fad4f06f8a5f/nvidia-persistenced.c#L740) 去写
我有一个命令行应用,想要实现成守护进程,是这么写的

```rust
use nix::unistd::{ForkResult, fork};
Expand Down Expand Up @@ -91,3 +94,5 @@ fn main() {
}
```



0 comments on commit cb608a7

Please sign in to comment.