From: Nils Carlson Date: Fri, 4 Feb 2011 07:24:51 +0000 (+0100) Subject: libustctl: use direct socket communication X-Git-Tag: v0.12~25 X-Git-Url: https://git.liburcu.org/?a=commitdiff_plain;h=8b26d56b9988ac0c09999c14a08bc28d42551367;hp=8b26d56b9988ac0c09999c14a08bc28d42551367;p=ust.git libustctl: use direct socket communication This patch changes libustctl to be socket instead of pid oriented. The user is expected to connect to a pid using ustctl_connect_pid(pid_t) which returns a socket file-descriptor and then use the socket for the rest of the api. This reduces the amount of open and closing systemcalls and also makes it possible for a session daemon to detect process shutdown by the socket closing. David, this ones for you. :-) Signed-off-by: Nils Carlson Acked-by: Mathieu Desnoyers ---