diff --git a/pkttyagent-tcsaflush-batch-erase.patch b/pkttyagent-tcsaflush-batch-erase.patch new file mode 100644 index 0000000..8a914b5 --- /dev/null +++ b/pkttyagent-tcsaflush-batch-erase.patch @@ -0,0 +1,12 @@ +diff -up ./src/programs/pkttyagent.c.ori ./src/programs/pkttyagent.c +--- ./src/programs/pkttyagent.c.ori 2019-09-27 16:52:24.377434038 +0200 ++++ ./src/programs/pkttyagent.c 2019-09-27 16:53:01.743875350 +0200 +@@ -56,7 +56,7 @@ static void tty_handler(int signal) + + if (tty_flags_saved) + { +- tcsetattr (fileno (tty), TCSAFLUSH, &ts); ++ tcsetattr (fileno (tty), TCSADRAIN, &ts); + } + + kill(getpid(), signal); diff --git a/polkit.spec b/polkit.spec index a54e7e3..41d91c4 100644 --- a/polkit.spec +++ b/polkit.spec @@ -6,13 +6,14 @@ Summary: An authorization framework Name: polkit Version: 0.116 -Release: 4%{?dist} +Release: 5%{?dist} License: LGPLv2+ URL: http://www.freedesktop.org/wiki/Software/polkit Source0: http://www.freedesktop.org/software/polkit/releases/%{name}-%{version}.tar.gz Source1: http://www.freedesktop.org/software/polkit/releases/%{name}-%{version}.tar.gz.sign Patch1: polkit-0.116-pkttyagent-sigttou-bg-job.patch +Patch2: pkttyagent-tcsaflush-batch-erase.patch BuildRequires: gcc-c++ BuildRequires: glib2-devel >= 2.30.0 @@ -176,6 +177,9 @@ exit 0 %{_libdir}/girepository-1.0/*.typelib %changelog +* Fri Sep 27 2019 Jan Rybar - 0.116-5 +- pkttyagent: unread input flushed on terminal restore + * Sun Sep 08 2019 Kalev Lember - 0.116-4 - Rebuilt for mozjs60 s390x fixes