added kill() for PartialExec

This commit is contained in:
Marc Wäckerlin
2005-04-20 18:12:55 +00:00
parent bc8f7cc220
commit fa0e89bb04
2 changed files with 15 additions and 0 deletions

View File

@@ -9,6 +9,9 @@
@license LGPL, see file <a href="license.html">COPYING</a> @license LGPL, see file <a href="license.html">COPYING</a>
$Log$ $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 Revision 1.11 2005/04/19 18:48:00 marc
new feature PartialExec new feature PartialExec
@@ -535,3 +538,9 @@ mrw::PartialExec& mrw::PartialExec::terminate() throw() {
kill(_pid, SIGTERM); kill(_pid, SIGTERM);
return *this; return *this;
} }
//------------------------------------------------------------------------------
mrw::PartialExec& mrw::PartialExec::kill() throw() {
kill(_pid, SIGKILL);
return *this;
}

View File

@@ -9,6 +9,9 @@
@license LGPL, see file <a href="license.html">COPYING</a> @license LGPL, see file <a href="license.html">COPYING</a>
$Log$ $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 Revision 1.6 2005/04/19 18:48:00 marc
new feature PartialExec 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. /// Terminates a running job by sending @c SIGTERM to the child process.
PartialExec& terminate() throw(); PartialExec& terminate() throw();
/// Kills a running job by sending @c SIGKILL to the child process.
PartialExec& kill() throw();
//................................................................ methods //................................................................ methods
private: private: