Bug #1370
openWhy "lttng create --live" spawns a local relay daemon but not in daemon mode?
0%
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.
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.
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.