From fc40dfc41e8b3fbbe830846499ccce122930b235 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Thu, 7 Aug 2025 21:45:20 +0200 Subject: Shell pipes Changelog: Implemented pipes in shell scripts --- src/shell.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/shell.c (limited to 'src/shell.c') diff --git a/src/shell.c b/src/shell.c new file mode 100644 index 0000000..d832078 --- /dev/null +++ b/src/shell.c @@ -0,0 +1,8 @@ +#define _GNU_SOURCE +#include +#include + +int shell_pipe_cloexec( int pipefd[ 2 ] ) +{ + return pipe2( pipefd, O_CLOEXEC ); +} -- cgit v1.2.3