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.
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.
- 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.
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.
Also available in: Atom
PDF