From 9b04614543f4bc4e90dfa2f99eca25c3b703e7ed Mon Sep 17 00:00:00 2001 From: twoneis Date: Fri, 25 Apr 2025 09:26:22 +0200 Subject: [PATCH] print error code --- code/leak.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/leak.c b/code/leak.c index f00681ff5..6daf44c62 100644 --- a/code/leak.c +++ b/code/leak.c @@ -51,10 +51,10 @@ main(void) int ret; ret = pipe2(spray[i], O_NONBLOCK); if (ret < 0) { - printf("main: error: pipe2: object %lu\n", i); + printf("main: error: object %lu pipe2: %i\n", i, ret); exit(-1); } - ret = fcntl(spray[i][0], F_SETPIPE_SZ, 8); + ret = fcntl(spray[i][0], F_SETPIPE_SZ, 8192); if (ret < 0) { printf("main: error: fcntl: object %lu\n", i); exit(-1);