ctdb-common: Update run_proc api to re-assign stdin
commit16c188c7f8e335e5c8c191148be2f8347020178a
authorAmitay Isaacs <amitay@gmail.com>
Fri, 5 May 2017 16:47:00 +0000 (6 02:47 +1000)
committerMartin Schwenke <martins@samba.org>
Tue, 30 May 2017 01:58:06 +0000 (30 03:58 +0200)
tree33782cc590a919294147e741629d4ae26249a73b
parent15367ce4b413b6d7c42b6e0a3eac1f42eeedc564
ctdb-common: Update run_proc api to re-assign stdin

This allows to pass data to a child process via stdin.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/common/run_proc.c
ctdb/common/run_proc.h
ctdb/server/ctdb_eventd.c
ctdb/tests/cunit/run_proc_001.sh
ctdb/tests/src/run_proc_test.c