Terminate child process of CTS immediately

The forked child process in the testCTSSyscallBlock executes given
syscall. If the child process does not crash during the syscall,
it just returns from the function and keeps running the remaining
CTS. So the parent process waits for a very long time until the
child process finishes.
To prevent this behavior, this change terminates the child process
immediately after executing syscall.

Bug: 65569604
Test: ./cts-tradefed run cts --module CtsSecurityTestCases \
      --test android.security.cts.SeccompTest#testCTSSyscallBlocked
Change-Id: I5fda294d77182c17eee5aa79d7e717fafeee7f42
(cherry picked from commit 2ca6cf0ebe67e335af99513e1624105edc92f43b)
1 file changed