whoops
This commit is contained in:
parent
6a3e288d74
commit
8196f711bc
|
@ -60,8 +60,8 @@ namespace nanosm {
|
|||
|
||||
void Process::OnReady(int eventMask) {
|
||||
// In our case, any readiness signaled by the pidfd means the process exited
|
||||
// so this will never block (or really, wait). But in the case that it does
|
||||
auto res = waitid(P_PIDFD, pidFd, &siginfo, WNOHANG | WEXITED);
|
||||
// so this will never block (or really, wait).
|
||||
waitid(P_PIDFD, pidFd, &siginfo, WNOHANG | WEXITED);
|
||||
|
||||
// Post a callback to call the user's exit callback (if one exists)
|
||||
eventLoop.Post([self = shared_from_this()]() {
|
||||
|
|
|
@ -26,12 +26,12 @@ namespace nanosm::log {
|
|||
|
||||
template <class... Args>
|
||||
constexpr void Warn(std::string_view component, std::string formatString, Args... args) {
|
||||
return LogImpl(component, "Info", formatString, std::make_format_args(args...));
|
||||
return LogImpl(component, "Warning", formatString, std::make_format_args(args...));
|
||||
}
|
||||
|
||||
template <class... Args>
|
||||
constexpr void Error(std::string_view component, std::string formatString, Args... args) {
|
||||
return LogImpl<STDERR_FILENO>(component, "Info", formatString, std::make_format_args(args...));
|
||||
return LogImpl<STDERR_FILENO>(component, "Error", formatString, std::make_format_args(args...));
|
||||
}
|
||||
|
||||
} // namespace nanosm::log
|
||||
|
|
Loading…
Reference in New Issue