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 almost 3 years ago
- Status changed from New to Closed
- % Done changed from 80 to 100
commit cfad065142375b14439598ab13b09a95be0ad333 Author: Andy Fiddaman <email@example.com> Date: 2018-06-08T03:04:14.000Z 9589 ldterm_dosig() can send empty mblks downstream Reviewed by: Dominik Hassler <firstname.lastname@example.org> Reviewed by: Igor Kozhukhov <email@example.com> Reviewed by: Yuri Pankov <firstname.lastname@example.org> Reviewed by: Toomas Soome <email@example.com> Approved by: Gordon Ross <firstname.lastname@example.org>