added App::isGuardian()
This commit is contained in:
		@ -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:
 | 
			
		||||
 | 
			
		||||
@ -33,6 +33,7 @@
 | 
			
		||||
#include <unistd.h>
 | 
			
		||||
#include <fcntl.h>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#define WID_MAP_ALIGN 128
 | 
			
		||||
#define WID_MAX (wid_map_t::WID_INVALID - 1)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user