summaryrefslogtreecommitdiff
path: root/src/shell.c
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2025-08-07 21:45:20 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2025-08-25 22:55:25 +0200
commitfc40dfc41e8b3fbbe830846499ccce122930b235 (patch)
tree651e96119b5f0a1ba66afc200a465d5009124a3b /src/shell.c
parentc07525ac4692a2ee9c76bd0bd53c195c8164480f (diff)
Shell pipesHEADmaster
Changelog: Implemented pipes in shell scripts
Diffstat (limited to 'src/shell.c')
-rw-r--r--src/shell.c8
1 files changed, 8 insertions, 0 deletions
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 <fcntl.h>
+#include <unistd.h>
+
+int shell_pipe_cloexec( int pipefd[ 2 ] )
+{
+ return pipe2( pipefd, O_CLOEXEC );
+}