docs: Fix example code in ROOT_STORAGE_DAEMONS
This commit is contained in:
parent
4d2db005d8
commit
faec9de87f
|
@ -87,11 +87,11 @@ systemd 38:
|
||||||
Processes (run by the root user) whose first character of the zeroth command
|
Processes (run by the root user) whose first character of the zeroth command
|
||||||
line argument is `@` are excluded from the killing spree, much the same way as
|
line argument is `@` are excluded from the killing spree, much the same way as
|
||||||
kernel threads are excluded too. Thus, a daemon which wants to take advantage
|
kernel threads are excluded too. Thus, a daemon which wants to take advantage
|
||||||
of this logic needs to place the following at the top of its main() function:
|
of this logic needs to place the following at the top of its `main()` function:
|
||||||
|
|
||||||
```c
|
```c
|
||||||
...
|
...
|
||||||
[0][0] = '@';
|
argv[0][0] = '@';
|
||||||
...
|
...
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue