Add pid/pidfile on man/rz-run and make pid option a boolean (#1741)

This commit is contained in:
Riccardo Schirone 2021-09-23 20:35:19 +02:00 committed by Anton Kochkov
parent be157e869c
commit 6bb2c4b1c5
2 changed files with 5 additions and 1 deletions

View file

@ -505,7 +505,7 @@ RZ_API bool rz_run_parseline(RzRunProfile *p, const char *b) {
} else if (!strcmp(b, "aslr")) {
p->_aslr = parseBool(e);
} else if (!strcmp(b, "pid")) {
p->_pid = atoi(e);
p->_pid = parseBool(e);
} else if (!strcmp(b, "pidfile")) {
p->_pidfile = strdup(e);
} else if (!strcmp(b, "connect")) {

View file

@ -62,6 +62,10 @@ preload a library (not supported on Windows, only linux,osx,bsd)
Set to false by default, otherwise it will run the program in background, detached from the terminal.
.It Ar program
path to program to be executed
.It Ar pid
set to true to print the PID of the process to stderr
.It Ar pidfile
print the PID of the process to the specified file
.It Ar execve
use execve instead of posix_spawn (osx tricks)
.It Ar runlib