Exemplo n.º 1
0
void CRelaxReminderDlg::OnMenuExit() 
{
    // TODO: Add your command handler code here
    QuitProcess();
    AppLog(L_MSG, "exit... goodbye.");
    exit(0);
}
Exemplo n.º 2
0
void CRelaxReminderDlg::OnDestroy() 
{
    CDialog::OnDestroy();
    
    // TODO: Add your message handler code here
    QuitProcess();
}
Exemplo n.º 3
0
	bool Program::ProcessSharedInfo::sendSignal(bool withLock, int sigvalue)
	{
		if (withLock)
			mutex.lock();
		if (0 == running)
		{
			if (withLock)
				mutex.unlock();
			return false;
		}

		# ifndef YUNI_OS_WINDOWS
		{
			const pid_t pid = static_cast<pid_t>(processID);
			if (withLock)
				mutex.unlock();
			if (pid > 0)
				return (0 == ::kill(pid, sigvalue));
		}
		# else
		{
			// switch (sigvalue) ...

			// All signals are handled by force-quitting the child process' window threads.
			QuitProcess(processID);

			if (withLock)
				mutex.unlock();
		}
		# endif

		// mutex must be unlocked here
		return false;
	}
Exemplo n.º 4
0
int CMD_QuitProcess(int argc, char **argv)
{
	QuitProcess();
	return 0;
}