Project

General

Profile

Actions

Bug #1370

open
BY JG

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

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

Added by Bin Yuan over 2 years ago. Updated over 2 years 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.

JG Updated by Jérémie Galarneau over 2 years ago Actions #1

  • 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.

BY Updated by Bin Yuan over 2 years ago Actions #2

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: PDF Atom