Files
datastore/programs/server/user_defined_executable_function_drivers
Alexey Milovidov 0b6a2bc99f Fix DockerC FIFO runner stdin handling
Run `docker exec` attached in the background instead of detached so its exit status and stderr are observable, but redirect the Docker CLI stdin from `/dev/null` because the compiled function reads from the named pipe.

Also duplicate the runner stdin explicitly for the background writer. Some shells give background jobs `/dev/null` as stdin by default, which made `cat` send EOF to the input FIFO immediately and produced empty `Buffers` results.

Tests:
- `python3 -m py_compile programs/server/user_defined_executable_function_drivers/c_driver_common.py`
- `CLICKHOUSE_BINARY=./build/programs/clickhouse tests/queries/0_stateless/04241_executable_udf_driver.sh`
- `CLICKHOUSE_BINARY=./build/programs/clickhouse tests/queries/0_stateless/04242_executable_udf_driver_errors.sh`
- real `DockerC` `clickhouse-local` create/select/drop query
2026-05-17 01:33:36 +02:00
..