add kill(String,int)

This commit is contained in:
Doug MacEachern 2007-02-04 17:47:05 +00:00
parent 9f5d5cadf5
commit 08d212ecf9
1 changed files with 11 additions and 0 deletions

View File

@ -241,6 +241,17 @@ public class Sigar implements SigarProxy {
*/
public native void kill(long pid, int signum) throws SigarException;
/**
* Send a signal to a process.
*
* @param pid The process id or query.
* @param signum The signal number.
* @exception SigarException on failure.
*/
public void kill(String pid, int signum) throws SigarException {
kill(convertPid(pid), signum);
}
/**
* Get system memory info.
* @exception SigarException on failure.