[CRIU] [PATCH 5/8] pipes: Add c/r for fifo files

Cyrill Gorcunov gorcunov at openvz.org
Fri Jun 22 08:24:59 EDT 2012


Basically pipes are superset over fifos, so we integrate
fifo c/r into pipes.c file.

There os acatually a trick used to open fifo files --
since fifo may block on opening we create a fake fifo
to be able to proceed without sleeping.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 cr-dump.c       |    8 ++-
 cr-show.c       |   15 +++-
 include/image.h |   10 +++
 include/pipes.h |   14 ++-
 pipes.c         |  220 +++++++++++++++++++++++++++++++++++++++++++++++-------
 5 files changed, 229 insertions(+), 38 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-pipes-Add-c-r-for-fifo-files.patch
Type: text/x-patch
Size: 10712 bytes
Desc: not available
Url : http://openvz.org/pipermail/criu/attachments/20120622/763c60e4/0005-pipes-Add-c-r-for-fifo-files-0001.bin


More information about the CRIU mailing list