main: add -p,--print-pid=FILE|FD

When specified, print our PID to the file, or FD, after everything has
started up.
This commit is contained in:
Daniel Eklöf 2020-02-04 18:28:09 +01:00
parent ef98df1a95
commit d4755d94b0
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 69 additions and 6 deletions

View file

@ -6,4 +6,5 @@ _arguments \
'(-h --help)'{-h,--help}'[show help message and quit]' \
'(-b --backend)'{-b,--backend}'[backend to use (default: auto)]:backend:(xcb wayland auto)' \
'(-c --config)'{-c,--config}'[alternative configuration file]:filename:_files' \
'(-C --validate)'{-C,--validate}'[verify configuration then quit]'
'(-C --validate)'{-C,--validate}'[verify configuration then quit]' \
'(-p --print-pid)'{-p,--print-pid}'[print PID to this file or FD when up and running]:pidfile:_files'