ldterm_dosig() can send empty mblks downstream
When processing a signal, ldterm can end up sending an empty echo mblk down the stream.
If the owning application was NOT compiled with xpg4/6-values.o, then the empty mblk will be dropped in the
ptemmodule (ref http://src.illumos.org/source/xref/illumos-gate/usr/src/uts/common/io/ptem.c#565 )
However, otherwise it will be passed to the application and often treated as equivalent to an EOF.
One example of this is with the
tmuxutility. It works fine on illumos in non-xpg4 mode but not with xpg4 - in the latter, pressing ^C will cause tmux to exit.
There is no need for these empty mblks to be sent.
Updated by Electric Monk about 1 year ago
- Status changed from New to Closed
- % Done changed from 80 to 100
commit cfad065142375b14439598ab13b09a95be0ad333 Author: Andy Fiddaman <firstname.lastname@example.org> Date: 2018-06-08T03:04:14.000Z 9589 ldterm_dosig() can send empty mblks downstream Reviewed by: Dominik Hassler <email@example.com> Reviewed by: Igor Kozhukhov <firstname.lastname@example.org> Reviewed by: Yuri Pankov <email@example.com> Reviewed by: Toomas Soome <firstname.lastname@example.org> Approved by: Gordon Ross <email@example.com>