Skip to content

Commit

Permalink
Revert "Fix incorrectly terminated MakeThreadHighPriority dbus message"
Browse files Browse the repository at this point in the history
The first terminator is for input parameters. The second terminator was for the
output parameters.

If an error occurs when calling MakeThreadHighPriority(), e.g. a bad thread id,
then the reply from connection_send_with_reply_and_block() will be null.
  • Loading branch information
slouken committed Apr 8, 2020
1 parent 9cd06ac commit ba95fa6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/linux/SDL_threadprio.c
Expand Up @@ -68,7 +68,8 @@ rtkit_setpriority(pid_t thread, int nice_level)

if (!dbus || !SDL_DBus_CallMethodOnConnection(dbus->system_conn,
RTKIT_DBUS_NODE, RTKIT_DBUS_PATH, RTKIT_DBUS_INTERFACE, "MakeThreadHighPriority",
DBUS_TYPE_UINT64, &ui64, DBUS_TYPE_INT32, &si32, DBUS_TYPE_INVALID)) {
DBUS_TYPE_UINT64, &ui64, DBUS_TYPE_INT32, &si32, DBUS_TYPE_INVALID,
DBUS_TYPE_INVALID)) {
return SDL_FALSE;
}
return SDL_TRUE;
Expand Down

0 comments on commit ba95fa6

Please sign in to comment.