trunk/branch integration: Process::terminationEvent()

This commit is contained in:
Marian Krivos 2011-08-22 17:42:07 +00:00
parent b78869e93c
commit e4cfab03de
4 changed files with 11 additions and 3 deletions

View File

@ -1,7 +1,7 @@
//
// Process.h
//
// $Id: //poco/svn/Foundation/include/Poco/Process.h#2 $
// $Id: //poco/1.4/Foundation/include/Poco/Process.h#2 $
//
// Library: Foundation
// Package: Processes
@ -44,9 +44,15 @@
#if defined(POCO_OS_FAMILY_WINDOWS) && defined(POCO_WIN32_UTF8)
#if defined(_WIN32_WCE)
#include "Process_WINCE.h"
#else
#include "Poco/Process_WIN32U.h"
#endif
#elif defined(POCO_OS_FAMILY_WINDOWS)
#include "Poco/Process_WIN32.h"
#elif defined(POCO_VXWORKS)
#include "Poco/Process_VX.h"
#elif defined(POCO_OS_FAMILY_UNIX)
#include "Poco/Process_UNIX.h"
#else
@ -139,7 +145,7 @@ public:
/// Usage example:
/// Pipe outPipe;
/// Process::Args args;
/// ProcessHandle ph(launch("/bin/ps", args, &outPipe, 0, 0));
/// ProcessHandle ph(launch("/bin/ps", args, 0, &outPipe, 0));
/// PipeInputStream istr(outPipe);
/// ... // read output of ps from istr
/// int rc = ph.wait();

View File

@ -1,7 +1,7 @@
//
// Process_UNIX.h
//
// $Id: //poco/svn/Foundation/include/Poco/Process_UNIX.h#2 $
// $Id: //poco/1.4/Foundation/include/Poco/Process_UNIX.h#1 $
//
// Library: Foundation
// Package: Processes

View File

@ -81,6 +81,7 @@ public:
static ProcessHandleImpl* launchImpl(const std::string& command, const ArgsImpl& args, Pipe* inPipe, Pipe* outPipe, Pipe* errPipe);
static void killImpl(PIDImpl pid);
static void requestTerminationImpl(PIDImpl pid);
static std::string terminationEventName(PIDImpl pid);
};

View File

@ -81,6 +81,7 @@ public:
static ProcessHandleImpl* launchImpl(const std::string& command, const ArgsImpl& args, Pipe* inPipe, Pipe* outPipe, Pipe* errPipe);
static void killImpl(PIDImpl pid);
static void requestTerminationImpl(PIDImpl pid);
static std::string terminationEventName(PIDImpl pid);
};