|
|
@ -116,7 +116,7 @@ char * pstat_get_binary_path_from_string(char *buffer, const char *pid_value) |
|
|
|
} |
|
|
|
|
|
|
|
if( !pstat_is_running( ps ) ) { |
|
|
|
return; |
|
|
|
return buffer; |
|
|
|
} |
|
|
|
|
|
|
|
if( !pstat_is_deleted( ps ) ) { |
|
|
@ -138,7 +138,6 @@ char * pstat_get_binary_path_from_string(char *buffer, const char *pid_value) |
|
|
|
|
|
|
|
char * pstat_get_binary_path_from_integer(char *buffer, pid_t pid) |
|
|
|
{ |
|
|
|
pid_t pid = 0; |
|
|
|
int rc = 0; |
|
|
|
|
|
|
|
struct stat bin_stat; |
|
|
@ -155,7 +154,7 @@ char * pstat_get_binary_path_from_integer(char *buffer, pid_t pid) |
|
|
|
} |
|
|
|
|
|
|
|
if( !pstat_is_running( ps ) ) { |
|
|
|
return; |
|
|
|
return buffer; |
|
|
|
} |
|
|
|
|
|
|
|
if( !pstat_is_deleted( ps ) ) { |
|
|
|