Skip to content

Commit aa40366

Browse files
committed
Terminal: ignores WSL2 unknown process for terminal detection
1 parent a64a82f commit aa40366

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/detection/terminalshell/terminalshell_linux.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ static pid_t getTerminalInfo(FFTerminalResult* result, pid_t pid)
111111
ffStrbufEqualS(&result->processName, "proot") ||
112112
ffStrbufEqualS(&result->processName, "script") ||
113113
#ifdef __linux__
114+
ffStrbufStartsWithS(&result->processName, "Relay(") || // Unknown process in WSL2
114115
ffStrbufStartsWithS(&result->processName, "flatpak-") || // #707
115116
#endif
116117
ffStrbufEndsWithS(&result->processName, ".sh")

0 commit comments

Comments
 (0)