Cygwin: Pass file paths instead of file descriptors over UNIX sockets
Cygwin doesn't support file descriptors passing over UNIX sockets [1].
LTTng-ust and LTTng-tools make extensive use of this feature to pass
the shm and the wakeup pipe file descriptor from the userspace tracer
to the session daemon. The sessiond then pass those file descriptors
to the consumer.
To workaround this limitation, we pass the file paths of the shm and the
named wakeup pipe. These paths are relayed by the sessiond to the
consumer. The consumer then needs to open these paths.
The files are created in /tmp/lttng-fds and have the following format:
SHM : ust-shm-<pid>-<uuid>
Wakeup pipe : ust-wait-<pid>-<uuid>
[1] - http://cygwin.com/ml/cygwin/2009-10/msg00403.html
Signed-off-by: Christian Babeux <christian.babeux@efficios.com>
This page took 0.02807 seconds and 4 git commands to generate.