Whamcloud - gitweb
LU-5704 utils: stop open hangs on fifo files 39/19039/4
authorBob Glossman <bob.glossman@intel.com>
Mon, 21 Mar 2016 13:30:14 +0000 (06:30 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 28 Mar 2016 18:46:19 +0000 (18:46 +0000)
commitfab6073165dfbd107f54057e33363c77978af6cb
tree1edc8504553679d866c1a6ae45b4f1638fa36d10
parent7f271a24882b112f6ac3983aa8bab4c1c66435a7
LU-5704 utils: stop open hangs on fifo files

Use O_NONBLOCK in open calls to prevent hangs on operations
to special files, fifo files in particular.

Signed-off-by: Bob Glossman <bob.glossman@intel.com>
Change-Id: I20aa8425efa6ac545c3e2b970bd88e4c57c086da
Reviewed-on: http://review.whamcloud.com/19039
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/utils/liblustreapi.c