libsystem: exec: kill child on timeout and add kill signal selectable api
authorWaLyong Cho <walyong.cho@samsung.com>
Tue, 8 Nov 2016 04:24:37 +0000 (13:24 +0900)
committerWaLyong Cho <walyong.cho@samsung.com>
Tue, 8 Nov 2016 05:17:46 +0000 (14:17 +0900)
commit508125f959419cc6d7dceb500e49189bfc224984
tree7fc482d2b1fcc7a6e8e9b7636b8646ff32c8ac7a
parent13fd341cd5069196125e4cb09b5c81c4d87f4299
libsystem: exec: kill child on timeout and add kill signal selectable api

On timeout, in do_fork_exec_redirect() ordo_fork_exec(), kill the child
process with SIGTERM signal.
And to configure the kill signal add new two api.
- do_fork_exec_kill()
- do_fork_exec_kill_redirect()

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