Project

General

Profile

Actions

Bug #1370

open

Why "lttng create --live" spawns a local relay daemon but not in daemon mode?

Added by Bin Yuan over 1 year ago. Updated over 1 year ago.

Status:
Confirmed
Priority:
Normal
Target version:
Start date:
04/06/2023
Due date:
% Done:

0%

Estimated time:

Description

The relayd spawned by lttng-create command don't close the file descriptor such like stdout.
Why not spawn the relayd with "--daemonize" option.

Actions #1

Updated by Jérémie Galarneau over 1 year ago

  • Status changed from New to Confirmed
  • Target version changed from 2.12 to 2.14

No particular reason that I know of. I think it's mostly due to the fact that the client wouldn't log errors that cause the relay daemon to fail to launch if --daemonize was used.

It would be an improvement for sure, but the client would need to synchronize with the relay daemon somehow to report early launch errors.

Actions #2

Updated by Bin Yuan over 1 year ago

Jérémie Galarneau wrote in #note-1:

No particular reason that I know of. I think it's mostly due to the fact that the client wouldn't log errors that cause the relay daemon to fail to launch if --daemonize was used.

It would be an improvement for sure, but the client would need to synchronize with the relay daemon somehow to report early launch errors.

Ok, I found a way to work around, just lanuching relayd with deamon option firstly before the session creation.

Actions

Also available in: Atom PDF