diff --git a/pthread_atfork_test_001.cpp b/pthread_atfork_test_001.cpp index 1ed1b31..0b8f7a6 100644 --- a/pthread_atfork_test_001.cpp +++ b/pthread_atfork_test_001.cpp @@ -1,4 +1,4 @@ -/* +/*1212 * Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved. * Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved. * @@ -169,8 +169,8 @@ static void *PthreadAtforkTest(void *arg) // 等待子线程结束 err = pthread_join(tid, NULL); ICUNIT_GOTO_EQUAL(err, 0, err, EXIT_WAIT); - - // 父进程等待子进程退出 +// + // 父进程等待子进程退出 err = waitpid(pid, &status, 0); status = WEXITSTATUS(status); // 获取子进程的退出状态 ICUNIT_GOTO_EQUAL(err, pid, err, EXIT);