From 9e77e8831ed511f832b61930f73a65094a0ae4e4 Mon Sep 17 00:00:00 2001 From: Rafal Wojtczuk Date: Tue, 5 Jul 2011 12:49:06 +0200 Subject: [PATCH] qrexec: in agent, use nonzero "fake" pid for existing process Because 0 means invalid entry. --- qrexec/qrexec_agent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qrexec/qrexec_agent.c b/qrexec/qrexec_agent.c index 48b51717..1ea345cd 100644 --- a/qrexec/qrexec_agent.c +++ b/qrexec/qrexec_agent.c @@ -197,7 +197,7 @@ void handle_connect_existing(int client_id, int len) char buf[len]; read_all_vchan_ext(buf, len); sscanf(buf, "%d %d %d", &stdin_fd, &stdout_fd, &stderr_fd); - create_info_about_client(client_id, 0, stdin_fd, stdout_fd, + create_info_about_client(client_id, -1, stdin_fd, stdout_fd, stderr_fd); client_info[client_id].is_exited = 1; //do not wait for SIGCHLD }