-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Another dlt-dameon recreate fifo file before exit error #569
Comments
Hello @jack-liuhang
Conclusion: fifo already been renewed and used by new daemon Next actions:
None of new daemon or new user process can communicate since no fifo there. |
Proof:
|
Hello @duvanan13
Regards |
RCA: In dlt init phase 1, setup for local fifo also trying to remove the exist one (unlink), however the fd not yet close (fd 3). Then later on, the old daemon at exit phase will try to remove the fifo if detecting fifo linking to fd. |
Thank you for revisiting the question and investing your time in it. Solving this issue thoroughly is indeed challenging. Consider not unlinking tmpFifo directly. For instance, quickly check for IP binding conflicts before unlinking FIFO operations. Additionally, preventing new daemons from being created on a multi-user machine poses its own challenges. Best regards, |
Hello @jack-liuhang |
Hello @jack-liuhang |
Maybe another question will raise, and I have mentioned in the MR |
dlt-daemon/src/daemon/dlt-daemon.c
Line 1580 in a4105dd
if a dlt-daemon is running, and someone else startup another dlt-daemon again, and it will exit error because of binding ip/port confilct.
But this dlt-daemon will recreate FIFO file, and the first daemon cannot receive any message from FIFO because the old file is deleted
The text was updated successfully, but these errors were encountered: