mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-30 05:48:18 +00:00
Use POSIX tcgetpgrp() instead of BSD TIOCGPGRP ioctl
This commit is contained in:
parent
edd34a2d7e
commit
51f70f2040
@ -1149,10 +1149,8 @@ sync_ttysize(int src, int dst)
|
||||
|
||||
if (ioctl(src, TIOCGSIZE, &tsize) == 0) {
|
||||
ioctl(dst, TIOCSSIZE, &tsize);
|
||||
#ifdef TIOCGPGRP
|
||||
if (ioctl(dst, TIOCGPGRP, &pgrp) == 0)
|
||||
killpg(pgrp, SIGWINCH);
|
||||
#endif
|
||||
if ((pgrp = tcgetpgrp(dst)) != -1)
|
||||
killpg(pgrp, SIGWINCH);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user