无法回收子进程

Signed-off-by: xlgitee <xulong19@huawei.com>
This commit is contained in:
xlgitee 2024-04-15 10:34:53 +08:00
parent 5ce765d479
commit 5cf38335d8

View File

@ -13,10 +13,12 @@
* limitations under the License.
*/
#include <signal.h>
#include <unistd.h>
int main()
{
signal(SIGCHLD, SIG_IGN);
while (1) {
pause();
}