Skip to content
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

code about External Command will never be invoked in arbiterdaemon.py #1483

Open
andyxning opened this issue Jan 30, 2015 · 1 comment
Open

Comments

@andyxning
Copy link

code in arbiterdaemon.py line between 774-791 will never be invoked. And the external command FIFO will never be created. This problem is just like #1430.

since the initial value of suppl_socks is None, then the initial invoke about handleRequests is just like handleRequests(timeout) which will be actually sleep timeout seconds and return with elapsed be 0 and ins be []. Thus the code in line 774-791 will never be invoked in the first invoke about handleRequests.

As a consequency, external command FIFO will never be initialized and the FD of external command FIFO will never be added to the suppl_socks variable. Thus It is wrong.

RELATED INFO: why pipe does not work with select as expected

If you agree with me, then i can make a Pull Request with both the two issues fixed.

andyxning referenced this issue in andyxning/shinken Feb 10, 2015
@Seb-Solon Seb-Solon modified the milestone: 2.4 (Noteworthy Nagapie) **we will find :)** Mar 9, 2015
@Seb-Solon
Copy link
Contributor

This seems legit to me. I'll try to reproduce the behavior. I guess the named_pipe related is in the module and so this code is not used.

@Seb-Solon Seb-Solon modified the milestones: 2.6 (), 2.4 (Noteworthy Nagapie) **we will find :)** Mar 18, 2015
@titilambert titilambert mentioned this issue Mar 18, 2015
11 tasks
Seb-Solon pushed a commit to Alignak-monitoring/alignak that referenced this issue Sep 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants