conmon: Increase buffer size

The buffer is used to read from the stderr/stdout stream, which
can easily be larger than 256 bytes. With a larger buffer we will
do fewer, larger reads, which is more efficient. And 8k more stack
size use is not really a problem.

Signed-off-by: Alexander Larsson <alexl@redhat.com>
This commit is contained in:
Alexander Larsson 2017-06-02 14:15:50 +02:00
parent fe80f857ca
commit d2f09ef483

View file

@ -84,7 +84,7 @@ static inline void strv_cleanup(char ***strv)
#define _cleanup_gstring_ _cleanup_(gstring_free_cleanup)
#define _cleanup_strv_ _cleanup_(strv_cleanup)
#define BUF_SIZE 256
#define BUF_SIZE 8192
#define CMD_SIZE 1024
#define MAX_EVENTS 10