mirror of
https://github.com/pocoproject/poco.git
synced 2025-02-20 14:24:35 +01:00
trunk/branch integration: Process::terminationEvent()
This commit is contained in:
parent
e4cfab03de
commit
d32aea5dbe
@ -205,11 +205,17 @@ void ProcessImpl::killImpl(PIDImpl pid)
|
||||
|
||||
void ProcessImpl::requestTerminationImpl(PIDImpl pid)
|
||||
{
|
||||
std::string evName("POCOTRM");
|
||||
evName.append(NumberFormatter::formatHex(pid, 8));
|
||||
NamedEvent ev(evName);
|
||||
NamedEvent ev(terminationEventName(pid));
|
||||
ev.set();
|
||||
}
|
||||
|
||||
|
||||
std::string ProcessImpl::terminationEventName(PIDImpl pid)
|
||||
{
|
||||
std::string evName("POCOTRM");
|
||||
NumberFormatter::appendHex(evName, pid, 8);
|
||||
return evName;
|
||||
}
|
||||
|
||||
|
||||
} // namespace Poco
|
||||
|
@ -209,11 +209,17 @@ void ProcessImpl::killImpl(PIDImpl pid)
|
||||
|
||||
void ProcessImpl::requestTerminationImpl(PIDImpl pid)
|
||||
{
|
||||
std::string evName("POCOTRM");
|
||||
evName.append(NumberFormatter::formatHex(pid, 8));
|
||||
NamedEvent ev(evName);
|
||||
NamedEvent ev(terminationEventName(pid));
|
||||
ev.set();
|
||||
}
|
||||
|
||||
|
||||
std::string ProcessImpl::terminationEventName(PIDImpl pid)
|
||||
{
|
||||
std::string evName("POCOTRM");
|
||||
NumberFormatter::appendHex(evName, pid, 8);
|
||||
return evName;
|
||||
}
|
||||
|
||||
|
||||
} // namespace Poco
|
||||
|
Loading…
x
Reference in New Issue
Block a user