mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-04 15:40:44 +00:00
killall(1): allow sending signals to processes with control terminal on pts(4)
PR: 268093 Reviewed by: kib MFC after: 1 week
This commit is contained in:
parent
d1f3abc892
commit
e442917ee4
|
@ -255,7 +255,8 @@ main(int ac, char **av)
|
|||
if (tty) {
|
||||
if (strncmp(tty, "/dev/", 5) == 0)
|
||||
snprintf(buf, sizeof(buf), "%s", tty);
|
||||
else if (strncmp(tty, "tty", 3) == 0)
|
||||
else if (strncmp(tty, "tty", 3) == 0 ||
|
||||
strncmp(tty, "pts/", 4) == 0)
|
||||
snprintf(buf, sizeof(buf), "/dev/%s", tty);
|
||||
else
|
||||
snprintf(buf, sizeof(buf), "/dev/tty%s", tty);
|
||||
|
|
Loading…
Reference in a new issue