Skip to content

Commit

Permalink
Shell (Linux): always detect tty id
Browse files Browse the repository at this point in the history
  • Loading branch information
CarterLi committed Feb 27, 2024
1 parent 79b7b15 commit a3c3f38
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/detection/terminalshell/terminalshell_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,7 @@ static const char* getProcessNameAndPpid(pid_t pid, char* name, pid_t* ppid, int
return "sscanf(stat) failed";

if (tty)
{
if ((tty_ >> 8) == 0x88)
*tty = tty_ & 0xFF;
else
*tty = -1;
}
*tty = tty_ & 0xFF;

#elif defined(__APPLE__)

Expand Down

0 comments on commit a3c3f38

Please sign in to comment.