mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-26 14:41:25 +00:00
replay: Use GPid and G_PID_FORMAT for portability
Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Christophe Fergeau <cfergeau@redhat.com>
This commit is contained in:
parent
dec1fdeab8
commit
27df2afe34
@ -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);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user