add protocol param to proc_port function

This commit is contained in:
Doug MacEachern committed 2005-03-16 02:44:52 +00:00
1 parent 730ee36885
commit c31d2c5712
5 files changed
+10 -5

No files matched your search

+3 -2
View File
@@ -870,8 +870,9 @@ JNIEXPORT jlong SIGAR_JNI(Sigar_getProcPort)
#if defined(__linux__) || defined(WIN32)
/* just thinking about implementing this on other platforms hurts */
if ((status = sigar_proc_port_get(sigar, (unsigned long)port, &pid)) != SIGAR_OK) {
status = sigar_proc_port_get(sigar, SIGAR_NETCONN_TCP,
(unsigned long)port, &pid);
if (status != SIGAR_OK) {
sigar_throw_error(env, jsigar, status);
}
#else