]> git.lttng.org Git - lttng-tools.git/commit
lttng-relayd: Add `--pid-file` parameter
authorKienan Stewart <kstewart@efficios.com>
Tue, 12 Nov 2024 20:23:06 +0000 (15:23 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 18 Dec 2024 15:55:20 +0000 (15:55 +0000)
commit58b8d49ba10e6f2438ec6ef6662c510e9a94451b
treea8cb1a27feba6c39241a3c98bc217e9988c5da6d
parentb89fd4a2af6c94d27e652fd20310da0f8526abbf
lttng-relayd: Add `--pid-file` parameter

Intended to be used a mechanism to get the PID of the process when
starting with `-b` or `-d`.

`lttng-sessiond` writes to a well-known path inside `$LTTNG_HOME`
instead.

The exit for the lttng-relayd `main()` function is changed from
`exit()` to `return`. When using `exit()` or `std::exit()`, the
end-of-scope objects (e.g. from `lttng::make_scope_exit()` do not
fire.

Change-Id: I1ce6fd316356ac251cb3a0c0039c565f1ca1210f
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
doc/man/lttng-relayd.8.txt
src/bin/lttng-relayd/main.cpp
This page took 0.028199 seconds and 4 git commands to generate.