/proc check for proc_exe

This commit is contained in:
Doug MacEachern 2005-02-15 19:13:59 +00:00
parent 44fabf2103
commit c37991c69c
1 changed files with 1 additions and 1 deletions

View File

@ -880,7 +880,7 @@ int sigar_proc_exe_get(sigar_t *sigar, sigar_pid_t pid,
if ((len = readlink(name, procexe->name, if ((len = readlink(name, procexe->name,
sizeof(procexe->name)-1)) < 0) sizeof(procexe->name)-1)) < 0)
{ {
return errno; return PROCFS_STATUS(errno);
} }
procexe->name[len] = '\0'; procexe->name[len] = '\0';