[ltt-dev] [UST PATCH] Get Online targets checker

Yannick Brosseau yannick.brosseau at gmail.com
Fri Mar 25 17:57:28 EDT 2011


On 2011-03-25 17:54, Matthew Khouzam wrote:
> Added a check in get online pids to only send the pids that are
> currently online.
>
>
> Signed-off-by: Matthew Khouzam <matthew.khouzam at ericsson.com>
> ---
>  libustctl/libustctl.c |    9 ++++++++-
>  1 files changed, 8 insertions(+), 1 deletions(-)
>
> diff --git a/libustctl/libustctl.c b/libustctl/libustctl.c
> index d57e645..3b5ae84 100644
> --- a/libustctl/libustctl.c
> +++ b/libustctl/libustctl.c
> @@ -92,8 +92,11 @@ pid_t *ustctl_get_online_pids(void)
>  {
>      struct dirent *dirent;
>      DIR *dir;
> +    DIR *proc_dir;
> +    char proc_dir_path[80]; /* proc+ / + int always smaller than 80*/
>      unsigned int ret_size = 1 * sizeof(pid_t), i = 0;
>
> +    printf( "%s\n" , SOCK_DIR) ;

This printf seems to be leftover debug code.




More information about the lttng-dev mailing list