Skip to content

Commit a3c3f38

Browse files
committed
Shell (Linux): always detect tty id
1 parent 79b7b15 commit a3c3f38

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/detection/terminalshell/terminalshell_linux.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,7 @@ static const char* getProcessNameAndPpid(pid_t pid, char* name, pid_t* ppid, int
148148
return "sscanf(stat) failed";
149149

150150
if (tty)
151-
{
152-
if ((tty_ >> 8) == 0x88)
153-
*tty = tty_ & 0xFF;
154-
else
155-
*tty = -1;
156-
}
151+
*tty = tty_ & 0xFF;
157152

158153
#elif defined(__APPLE__)
159154

0 commit comments

Comments
 (0)