process(3lua): init man pages
Initialise man pages for the process module.
This commit is contained in:
parent
69f8fff3bd
commit
37d208a5d2
7 changed files with 156 additions and 0 deletions
27
man/process/process.pidof.3lua.scd
Normal file
27
man/process/process.pidof.3lua.scd
Normal file
|
@ -0,0 +1,27 @@
|
|||
PROCESS.PIDOF(3lua) "3lua" "Callisto manual pages"
|
||||
|
||||
# NAME
|
||||
*process.pidof* - get the PID of another process
|
||||
|
||||
# SYNOPSIS
|
||||
*process.pidof*(_cmd_: *string*)
|
||||
|
||||
# DESCRIPTION
|
||||
*process.pidof* returns the PID of a process
|
||||
which has the command name _cmd_.
|
||||
The process is chosen arbitrarily; if there are multiple matches,
|
||||
the first process found with the command name _cmd_ is returned.
|
||||
|
||||
If a process could not be found, *process.pidof* returns nil.
|
||||
|
||||
# EXAMPLES
|
||||
Flawed implementation of *process.pid*:
|
||||
|
||||
```
|
||||
function pid()
|
||||
return process.pidof("csto")
|
||||
end
|
||||
```
|
||||
|
||||
# SEE ALSO
|
||||
callisto(3lua), process(3lua)
|
Loading…
Add table
Add a link
Reference in a new issue