libsystem: exec: add do_fork_exec_redirect()
authorWaLyong Cho <walyong.cho@samsung.com>
Mon, 7 Nov 2016 07:54:43 +0000 (16:54 +0900)
committerWaLyong Cho <walyong.cho@samsung.com>
Tue, 8 Nov 2016 04:25:31 +0000 (13:25 +0900)
commit13fd341cd5069196125e4cb09b5c81c4d87f4299
treec46dd18669ddb88871cc511a6d9e12c82f1a9874
parentb7c348aa790d26baea4bf74b1057cafe013215ac
libsystem: exec: add do_fork_exec_redirect()

To execute and redirect its output/error, add
do_fork_exec_redirect(). This api is very similar to do_fork_exec() but
additionally takes fd and flags. According to flags the child output or
error redirected to fd.

Change-Id: I8e6f2df5d812760138a429adec41bbd76645d6f3
Signed-off-by: WaLyong Cho <walyong.cho@samsung.com>
src/libsystem/exec.c
src/libsystem/libsystem.h