diff options
Diffstat (limited to 'include/Program.hpp')
-rw-r--r-- | include/Program.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/Program.hpp b/include/Program.hpp index 8ac2d2d..82c912a 100644 --- a/include/Program.hpp +++ b/include/Program.hpp @@ -20,9 +20,10 @@ int exec_program_pipe(const char **args, ReadProgram *read_program); /* @args need to have at least 2 arguments. The first which is the program name - and the last which is NULL, which indicates end of args + and the last which is NULL, which indicates end of args. + |buffer_size| has to be between 1 and 65536. */ -int exec_program(const char **args, ProgramOutputCallback output_callback, void *userdata); +int exec_program(const char **args, ProgramOutputCallback output_callback, void *userdata, int buffer_size = 4096); // Return the exit status, or a negative value if waiting failed int wait_program(pid_t process_id); |