- 08 Oct, 2020 8 commits
-
-
Max Kellermann authored
By bit-wise ANDing the reported flags with GetScheduledFlags(), ERROR/HANGUP always get cleared. This means the MPD event loop could never report those conditions.
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
This just happened to break the Windows build because of the `GetObject` macro in `windows.h`, so I added a kludge to PollResultGeneric.hxx.
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
- 06 Oct, 2020 1 commit
-
-
Max Kellermann authored
Don't attempt to initialize the io_uring subsystem more than once.
-
- 05 May, 2020 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
Relax the assertions. This is necessary if BlockingCall() is used before the thread is started.
-
- 23 Apr, 2020 3 commits
-
-
Max Kellermann authored
This fixes a freeze bug in the NFS input/storage plugins: when libnfs auto-reconnets after a failure, it installs the new socket on the same file descriptor number. MPD's attempt to unregister the old socket by calling SocketMonitor::Steal() from NfsConnection::ScheduleSocket() fails because the new/old socket number is not registered in epoll, so epoll_ctl() returns ENOENT. The problem is that it left `scheduled_flags`, and so subsequent Schedule() calls will use `EPOLL_CTL_MOD`, which will fail again and again. Instead, we need to use `EPOLL_CTL_ADD` to register the new socket. Closes https://github.com/MusicPlayerDaemon/MPD/issues/806 Closes https://github.com/MusicPlayerDaemon/MPD/issues/756
-
Max Kellermann authored
These flags are output-only. Using them here is misleading.
-
Max Kellermann authored
-
- 02 Apr, 2020 1 commit
-
-
Max Kellermann authored
The event library uses various libnet.a classes, e.g. SocketDescriptor.
-
- 26 Mar, 2020 1 commit
-
-
Max Kellermann authored
-
- 24 Mar, 2020 1 commit
-
-
Rosen Penev authored
Found with constVariable Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 16 Mar, 2020 1 commit
-
-
Rosen Penev authored
[[maybe_unused]] (introduced in C++17) is standard C++. https://clang.llvm.org/docs/AttributeReference.html#maybe-unused-unused says that this is equivalent to the GNU unused attribute. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 13 Mar, 2020 3 commits
-
-
Rosen Penev authored
The former is deprecated by C++14. The standard says they are the same: The header defines all types and macros the same as the C standard library header<stdint.h>. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
Rosen Penev authored
The former is deprecated with C++14. The standard says both are the same: The contents and meaning of the header<cstddef>are the same as the C standard library header<stddef.h>,except that it does not declare the type wchar_t, that it also declares the type byte and its associated operations (21.2.5), and as noted in 21.2.3 and 21.2.4. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
Rosen Penev authored
The former was deprecated with C++14. The standard says they are the same: The contents of the header<csignal>are the same as the C standard library header<signal.h>. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 12 Mar, 2020 3 commits
-
-
Rosen Penev authored
The former is deprecated by C++14. It's also functionally the same. From the standard: 19.4 The header<cerrno>is described in Table 43. Its contents are the same as the POSIX header<errno.h>,except that errno shall be defined as a macro. [Note: The intent is to remain in close alignment with the POSIX standard.] A separate errno value shall be provided for each thread. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
Rosen Penev authored
The former was deprecated with C++14. According to the C++11 and C++17 standards, both files are identical. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
Rosen Penev authored
Introduced in C++17. It replaces gcc's warn_unused_result. Found with modernize-use-nodiscard. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 02 Feb, 2020 1 commit
-
-
Rosen Penev authored
Found with readability-simplify-boolean-expr Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 01 Feb, 2020 2 commits
-
-
Max Kellermann authored
-
Rosen Penev authored
Found with modernize-use-override Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 18 Jan, 2020 2 commits
-
-
Max Kellermann authored
Prevents compiling those sources many times, once for each debug program using it.
-
Max Kellermann authored
-
- 23 Dec, 2019 1 commit
-
-
Max Kellermann authored
Can fail if somebody calls Break().
-
- 22 Dec, 2019 5 commits
-
-
Max Kellermann authored
The ALSA "null" driver opens /dev/null and returns the file handle from snd_pcm_poll_descriptors(), but /dev/null cannot be used with epoll, the epoll_ctl() system call returns -EPERM. This means that the ALSA output hangs, eventually freezing the whole MPD process. This commit adds a workaround to the MultiSocketMonitor class which is used by the ALSA output plugin. Closes https://github.com/MusicPlayerDaemon/MPD/issues/695
-
Max Kellermann authored
-
Max Kellermann authored
SetReady() does this already.
-
Max Kellermann authored
-
Max Kellermann authored
-
- 20 Dec, 2019 1 commit
-
-
Max Kellermann authored
-
- 18 Dec, 2019 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
- 03 Aug, 2019 1 commit
-
-
Max Kellermann authored
Time to move on, two years after 2017.
-
- 05 Jul, 2019 1 commit
-
-
Max Kellermann authored
-