qrexec: in agent, use nonzero "fake" pid for existing process
Because 0 means invalid entry.
This commit is contained in:
parent
9ac98a77b9
commit
9e77e8831e
@ -197,7 +197,7 @@ void handle_connect_existing(int client_id, int len)
|
|||||||
char buf[len];
|
char buf[len];
|
||||||
read_all_vchan_ext(buf, len);
|
read_all_vchan_ext(buf, len);
|
||||||
sscanf(buf, "%d %d %d", &stdin_fd, &stdout_fd, &stderr_fd);
|
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);
|
stderr_fd);
|
||||||
client_info[client_id].is_exited = 1; //do not wait for SIGCHLD
|
client_info[client_id].is_exited = 1; //do not wait for SIGCHLD
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user