Revision c76da3dae3d7241a93fa88fb728b49687a3edae5 authored by Piotr Esden-Tempski on 12 November 2013, 03:39:03 UTC, committed by Felix Ruess on 18 November 2013, 23:27:54 UTC
We are now checking if the input channel is empty when receiving the IN
callback. If that is the case we assume that the child process exitted,
ond call the close process callback that normally is treggered by the
HUP callback.

Some background: On OS X glib is using it's own implementation of poll
that does not generate the HUP signal. (It would be possible to add this
functionality modelled after the SSH implementation of bsd_poll) The
glib implementation does generate IN signal when the pipe get's closed.
So we can just check if the input channel is empty and if that is the
case infer that the pipe got closed.
1 parent e180f58
History
File Mode Size
conf
data
doc
src
sw
tests
.gitignore -rw-r--r-- 3.7 KB
.gitmodules -rw-r--r-- 213 bytes
BUGS -rw-r--r-- 116 bytes
CHANGELOG.md -rw-r--r-- 12.1 KB
COPYING -rw-r--r-- 17.6 KB
Doxyfile -rw-r--r-- 76.0 KB
Makefile -rw-r--r-- 8.2 KB
Makefile.ac -rw-r--r-- 6.8 KB
Makefile.lpctools -rw-r--r-- 1.1 KB
README.md -rw-r--r-- 2.7 KB
create_module -rwxr-xr-x 9.7 KB
githelper.sh -rwxr-xr-x 7.4 KB
paparazzi_version -rwxr-xr-x 419 bytes
pprz_src_test.sh -rw-r--r-- 171 bytes

README.md

back to top