File: flush-events.patch

package info (click to toggle)
input-utils 1.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 368 kB
  • sloc: ansic: 1,217; sh: 65; makefile: 5
file content (24 lines) | stat: -rw-r--r-- 653 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Author: Tom <tom@trap.mtview.ca.us>
        Andreas Tille <tille@debian.org>
Description: print_event should flush it's output
Last-Update: Mon, 16 Sep 2024 09:13:11 +0200
Bug-Debian: https://bugs.debian.org/606202

--- a/input.c
+++ b/input.c
@@ -196,6 +196,7 @@ int device_info(int nr, int fd, int verb
                 }
 
                 printf("\n");
+                fflush(stdout);
         }
 
         return 0;
@@ -233,6 +234,7 @@ void print_event(struct input_event *eve
 			(unsigned int)event->code, event->value);
 	}
 	printf("\n");
+        fflush(stdout);
 }
 
 /* ---------------------------------------------------------------------