Use POSIX tcgetpgrp() instead of BSD TIOCGPGRP ioctl
This commit is contained in:
@@ -1149,10 +1149,8 @@ sync_ttysize(int src, int dst)
|
|||||||
|
|
||||||
if (ioctl(src, TIOCGSIZE, &tsize) == 0) {
|
if (ioctl(src, TIOCGSIZE, &tsize) == 0) {
|
||||||
ioctl(dst, TIOCSSIZE, &tsize);
|
ioctl(dst, TIOCSSIZE, &tsize);
|
||||||
#ifdef TIOCGPGRP
|
if ((pgrp = tcgetpgrp(dst)) != -1)
|
||||||
if (ioctl(dst, TIOCGPGRP, &pgrp) == 0)
|
killpg(pgrp, SIGWINCH);
|
||||||
killpg(pgrp, SIGWINCH);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user