Re: [PATCH spice-server] replay: Use GPid and G_PID_FORMAT for portability

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Acked-by: Christophe Fergeau <cfergeau@xxxxxxxxxx>

On Mon, Jun 25, 2018 at 11:46:23AM +0100, Frediano Ziglio wrote:
> Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
> ---
>  server/tests/replay.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/server/tests/replay.c b/server/tests/replay.c
> index b5806316..7f2adf24 100644
> --- a/server/tests/replay.c
> +++ b/server/tests/replay.c
> @@ -51,7 +51,7 @@ static gint slow = 0;
>  static gint skip = 0;
>  static gboolean print_count = FALSE;
>  static guint ncommands = 0;
> -static pid_t client_pid;
> +static GPid client_pid;
>  static GMainLoop *loop = NULL;
>  static GAsyncQueue *display_queue = NULL;
>  static GAsyncQueue *cursor_queue = NULL;
> @@ -215,7 +215,7 @@ static void end_replay(void)
>      spice_replay_free(replay);
>  
>      if (client_pid) {
> -        g_debug("kill %d", client_pid);
> +        g_debug("kill %" G_PID_FORMAT, client_pid);
>          kill(client_pid, SIGINT);
>          waitpid(client_pid, &child_status, 0);
>      }
> -- 
> 2.17.1
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel@xxxxxxxxxxxxxxxxxxxxx
> https://lists.freedesktop.org/mailman/listinfo/spice-devel

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel

[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]