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:
parent
fe80f857ca
commit
d2f09ef483
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ static inline void strv_cleanup(char ***strv)
|
||||||
#define _cleanup_gstring_ _cleanup_(gstring_free_cleanup)
|
#define _cleanup_gstring_ _cleanup_(gstring_free_cleanup)
|
||||||
#define _cleanup_strv_ _cleanup_(strv_cleanup)
|
#define _cleanup_strv_ _cleanup_(strv_cleanup)
|
||||||
|
|
||||||
#define BUF_SIZE 256
|
#define BUF_SIZE 8192
|
||||||
#define CMD_SIZE 1024
|
#define CMD_SIZE 1024
|
||||||
#define MAX_EVENTS 10
|
#define MAX_EVENTS 10
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue