Added an fflush() call after the printf in the monitor loop

in synclient.c. This makes "synclient -m" behave better when the output
is piped to some other program.
(From Anders Kaseorg <anders@kaseorg.com>.)
This commit is contained in:
Peter Osterlund
2003-11-17 16:42:57 +01:00
parent 49254fe2f0
commit f764fdbf20

View File

@@ -160,6 +160,7 @@ static void monitor(SynapticsSHM* synshm, int delay)
cur.left, cur.right, cur.up, cur.down,
cur.multi[0], cur.multi[1], cur.multi[2], cur.multi[3],
cur.multi[4], cur.multi[5], cur.multi[6], cur.multi[7]);
fflush(stdout);
old = cur;
}
usleep(delay * 1000);