From fa0e89bb04bc879eadf1c66273cfde7229795d87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Wed, 20 Apr 2005 18:12:55 +0000 Subject: [PATCH] added kill() for PartialExec --- mrw/exec.cpp | 9 +++++++++ mrw/exec.hpp | 6 ++++++ 2 files changed, 15 insertions(+) diff --git a/mrw/exec.cpp b/mrw/exec.cpp index 72411af..93bd403 100644 --- a/mrw/exec.cpp +++ b/mrw/exec.cpp @@ -9,6 +9,9 @@ @license LGPL, see file COPYING $Log$ + Revision 1.12 2005/04/20 18:12:55 marc + added kill() for PartialExec + Revision 1.11 2005/04/19 18:48:00 marc new feature PartialExec @@ -535,3 +538,9 @@ mrw::PartialExec& mrw::PartialExec::terminate() throw() { kill(_pid, SIGTERM); return *this; } + +//------------------------------------------------------------------------------ +mrw::PartialExec& mrw::PartialExec::kill() throw() { + kill(_pid, SIGKILL); + return *this; +} diff --git a/mrw/exec.hpp b/mrw/exec.hpp index 92e3737..75db4aa 100644 --- a/mrw/exec.hpp +++ b/mrw/exec.hpp @@ -9,6 +9,9 @@ @license LGPL, see file COPYING $Log$ + Revision 1.7 2005/04/20 18:12:55 marc + added kill() for PartialExec + Revision 1.6 2005/04/19 18:48:00 marc new feature PartialExec @@ -414,6 +417,9 @@ while (!exec.finished()) res+=exec.read().first; /// Terminates a running job by sending @c SIGTERM to the child process. PartialExec& terminate() throw(); + /// Kills a running job by sending @c SIGKILL to the child process. + PartialExec& kill() throw(); + //................................................................ methods private: