summaryrefslogtreecommitdiff
path: root/test/regression/interoperability_test/test_frame/tls_test_wait_all_child_process.c
blob: 3dd6be527d9fc40bef4f53ce9d162a9c977c0e21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/***************************************************************************/
/* Copyright (c) 2024 Microsoft Corporation                                */
/* Copyright (c) 2026 Eclipse ThreadX contributors                         */
/*                                                                         */
/* This program and the accompanying materials are made available under    */
/* the terms of the MIT License which is available at                      */
/* https://opensource.org/licenses/MIT.                                    */
/*                                                                         */
/* SPDX-License-Identifier: MIT                                            */
/***************************************************************************/

#include "tls_test_frame.h"

/* Wait until all child processes terminated. */
INT tls_test_wait_all_child_process( void* reserved_ptr)
{
    pid_t pid;
    INT exit_status;

    while ( TLS_TEST_SUCCESS == tls_test_uninterruptable_wait( &pid, &exit_status));

    return TLS_TEST_SUCCESS;
}