diff --git a/bindings/java/src/org/hyperic/sigar/Sigar.java b/bindings/java/src/org/hyperic/sigar/Sigar.java index 11dcc9fd..a803c8e2 100644 --- a/bindings/java/src/org/hyperic/sigar/Sigar.java +++ b/bindings/java/src/org/hyperic/sigar/Sigar.java @@ -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.