From a877c2a9543e8f7073c0a2ec2f706cfb988d5392 Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Fri, 11 Jun 2004 00:37:42 +0000 Subject: [PATCH] Repair the sys_info function to correctly incorporate the pid field and initialize it. Many thanks to Jeff for catching the error. This commit was SVN r1225. --- src/util/sys_info.c | 1 + src/util/sys_info.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util/sys_info.c b/src/util/sys_info.c index 306a70c438..c8d781ed33 100644 --- a/src/util/sys_info.c +++ b/src/util/sys_info.c @@ -14,6 +14,7 @@ ompi_sys_info_t ompi_system_info = { /* .init = */ false, + /* .pid = */ 0, /* .sysname = */ NULL, /* .nodename = */ NULL, /* .release = */ NULL, diff --git a/src/util/sys_info.h b/src/util/sys_info.h index 227d2fdad4..a58ad3b35b 100644 --- a/src/util/sys_info.h +++ b/src/util/sys_info.h @@ -25,7 +25,7 @@ struct ompi_sys_info_t { * Certifies that the ompi_sys_info() function has been * called at least once so fields have valid values */ - int pid; /* Process ID for this process */ + pid_t pid; /* Process ID for this process */ char *sysname; /**< Name of OS in use on this node. */ char *nodename; /**< Fully qualified host name on the network. */ char *release; /**< Release level of the operating system. */