[Spice-commits] server/tests
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Jun 26 10:15:36 UTC 2018
server/tests/replay.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 27df2afe34f7b6c7ae8dba05252e7eb9ff65ad63
Author: Frediano Ziglio <fziglio at redhat.com>
Date: Sun Jun 24 17:11:12 2018 +0100
replay: Use GPid and G_PID_FORMAT for portability
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
Acked-by: Christophe Fergeau <cfergeau at redhat.com>
diff --git a/server/tests/replay.c b/server/tests/replay.c
index a3379adc..40fd10b6 100644
--- a/server/tests/replay.c
+++ b/server/tests/replay.c
@@ -49,7 +49,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;
@@ -213,7 +213,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);
}
More information about the Spice-commits
mailing list