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
b78869e93c
commit
e4cfab03de
@ -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();
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
};
|
||||
|
||||
|
||||
|
@ -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);
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user