Skip to content

Commit

Permalink
Fix input only handling on rm2
Browse files Browse the repository at this point in the history
  • Loading branch information
Eeems committed Oct 11, 2024
1 parent ecf2c07 commit 9b23b3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shared/libblight_client/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ extern "C" {
__attribute__((visibility("default")))
int msgget(key_t key, int msgflg){
static const auto func_msgget = (int(*)(key_t, int))dlsym(RTLD_NEXT, "msgget");
if(!IS_INITIALIZED){
if(!IS_INITIALIZED || !DO_HANDLE_FB){
return func_msgget(key, msgflg);
}
// Catch rm2fb ipc
Expand All @@ -584,7 +584,7 @@ extern "C" {
__attribute__((visibility("default")))
int msgsnd(int msqid, const void* msgp, size_t msgsz, int msgflg){
static const auto func_msgsnd = (int(*)(int, const void*, size_t, int))dlsym(RTLD_NEXT, "msgsnd");
if(!IS_INITIALIZED){
if(!IS_INITIALIZED || !DO_HANDLE_FB){
return func_msgsnd(msqid, msgp, msgsz, msgflg);
}
if(msqid == msgq){
Expand Down

0 comments on commit 9b23b3e

Please sign in to comment.