[Tarantool-patches] [PATCH v2 2/2] test: unit/popen -- provide a child process

Cyrill Gorcunov gorcunov at gmail.com
Thu Mar 26 12:04:11 MSK 2020


On Thu, Mar 26, 2020 at 11:31:22AM +0300, Cyrill Gorcunov wrote:
...
> +
> +static ssize_t
> +read_safe(int pfd, char *dest, ssize_t bytes)
> +{
> +	ssize_t left = bytes;
> +	ssize_t off = 0;
> +
> +	while (left > 0) {
> +		ssize_t nr = read(pfd, &dest[off], left);
> +		printf("read %zd", nr);

This is redundant printf, I dropped it and force-pushed
into gorcunov/gh-4811-popen-coio-3


More information about the Tarantool-patches mailing list