-
Notifications
You must be signed in to change notification settings - Fork 354
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
return id for "addid" with position #8
Merged
MaxKellermann
merged 1 commit into
MusicPlayerDaemon:master
from
ewollesen:addid-with-pos
Jun 13, 2016
Merged
return id for "addid" with position #8
MaxKellermann
merged 1 commit into
MusicPlayerDaemon:master
from
ewollesen:addid-with-pos
Jun 13, 2016
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Previously the id was being returned only when a position wasn't specified.
This was referenced Jan 24, 2018
Closed
Closed
lotheac
added a commit
to lotheac/MPD
that referenced
this pull request
Dec 4, 2024
this fixes listening on the XDG runtime dir socket if binding to the configured tcp port fails. while listen_global_init() does in fact start listening on the XDG runtime dir socket, a failure to listen to the configured port causes all listener fd's, including the perfectly valid unix socket, to be closed: (gdb) bt #0 close (fd=10) at src/unistd/close.c:15 MusicPlayerDaemon#1 0x00005555555b2db7 in FileDescriptor::Close (this=0x7fffec777f80) at ../src/io/FileDescriptor.hxx:201 MusicPlayerDaemon#2 0x0000555555635a51 in SocketEvent::Close (this=0x7fffec777f58) at ../src/event/SocketEvent.cxx:46 MusicPlayerDaemon#3 0x00005555556385a0 in ServerSocket::OneServerSocket::Close (this=0x7fffec777f50) at ../src/event/ServerSocket.cxx:83 MusicPlayerDaemon#4 0x0000555555637777 in ServerSocket::Close (this=0x7fffef911f90) at ../src/event/ServerSocket.cxx:270 MusicPlayerDaemon#5 0x00005555556374d5 in ServerSocket::Open (this=0x7fffef911f90) at ../src/event/ServerSocket.cxx:260 MusicPlayerDaemon#6 0x00005555555bb0a4 in listen_global_init (config=..., listener=...) at ../src/Listen.cxx:139 MusicPlayerDaemon#7 0x0000555555583c9b in MainConfigured (options=..., raw_config=...) at ../src/Main.cxx:355 MusicPlayerDaemon#8 0x000055555558467e in MainOrThrow (argc=3, argv=0x7fffffffe738) at ../src/Main.cxx:663 MusicPlayerDaemon#9 0x00005555555846fa in mpd_main (argc=3, argv=0x7fffffffe738) at ../src/Main.cxx:669 MusicPlayerDaemon#10 0x000055555558475d in main (argc=3, argv=0x7fffffffe738) at ../src/Main.cxx:681 to fix that, consider listeners added by AddFD "good" so that it is kept open even if the tcp listens fail.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Previously the id was being returned only when a position wasn't
specified.