added kill() for PartialExec

master
Marc Wäckerlin 20 years ago
parent bc8f7cc220
commit fa0e89bb04
  1. 9
      mrw/exec.cpp
  2. 6
      mrw/exec.hpp

@ -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;
}

@ -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:

Loading…
Cancel
Save