mirror of
https://github.com/hanzoai/datastore.git
synced 2026-09-26 13:55:07 +00:00
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