diff --git a/samples/wrapper/wrapper.cpp b/samples/wrapper/wrapper.cpp index 874476bd4b..7e6d8e3645 100644 --- a/samples/wrapper/wrapper.cpp +++ b/samples/wrapper/wrapper.cpp @@ -532,6 +532,8 @@ void TASK::kill() { } sleep(1); } + vector descendants; + get_descendants(getpid(), descendants); kill_all(descendants); #endif }