Skip to content

Commit

Permalink
Merge branch 'OpenAtomFoundation:master' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
dengbo11 authored Jul 3, 2024
2 parents 0e5c145 + 90f0846 commit 3947a04
Show file tree
Hide file tree
Showing 10 changed files with 451 additions and 293 deletions.
11 changes: 6 additions & 5 deletions apps/ll-box/src/util/platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ static bool parse_wstatus(const int &wstatus, std::string &info)
static int DoWait(const int pid, int target = 0)
{
logDbg() << util::format("DoWait called with pid=%d, target=%d", pid, target);
int wstatus;
int wstatus{ -1 };
while (int child = waitpid(pid, &wstatus, 0)) {
if (child > 0) {
std::string info;
Expand All @@ -110,15 +110,16 @@ static int DoWait(const int pid, int target = 0)
if (errno == ECHILD) {
logDbg() << format("no child to wait");
return -1;
} else {
auto string = errnoString();
logErr() << format("waitpid failed, %s", string.c_str());
return -1;
}

auto string = errnoString();
logErr() << format("waitpid failed, %s", string.c_str());
return -1;
}
}
// when we pass options=0 to waitpid, it will never return 0
logWan() << "waitpid return 0, this should not happen normally";
return -1;
}

// wait all child
Expand Down
1 change: 1 addition & 0 deletions apps/uab/header/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ pfl_add_executable(
LINK_LIBRARIES
PRIVATE
${ABS_FILE}
linglong::api
PkgConfig::elf_static
PkgConfig::lz4
PkgConfig::lzma
Expand Down
Loading

0 comments on commit 3947a04

Please sign in to comment.