diff --git a/qse/include/qse/si/App.hpp b/qse/include/qse/si/App.hpp index 4032c2bd..c6ffc14d 100644 --- a/qse/include/qse/si/App.hpp +++ b/qse/include/qse/si/App.hpp @@ -97,6 +97,11 @@ public: static int setSignalHandler (int sig, SignalHandler sighr); static int unsetSignalHandler (int sig, bool ignore = false); + bool isGuardian () const + { + return this->_guarded_child_pid >= 0; + } + int guardProcess (const SignalSet& signals, const qse_mchar_t* proc_name = QSE_NULL); private: diff --git a/qse/lib/si/TcpServer.cpp b/qse/lib/si/TcpServer.cpp index 332a3699..634870d2 100644 --- a/qse/lib/si/TcpServer.cpp +++ b/qse/lib/si/TcpServer.cpp @@ -33,6 +33,7 @@ #include #include + #define WID_MAP_ALIGN 128 #define WID_MAX (wid_map_t::WID_INVALID - 1) @@ -397,7 +398,7 @@ int TcpServer::start (const qse_char_t* addrs) QSE_CPP_NOEXCEPT mux_xtn->first_time = true; - n = qse_mux_poll (this->listener_list.mux, QSE_NULL); + n = qse_mux_poll(this->listener_list.mux, QSE_NULL); if (n <= -1) { this->setErrorCode (E_ESYSERR); // TODO: proper error code conversion