[CRIU] [PATCH v2] tests: fix builds on alpine and centos

Adrian Reber areber at redhat.com
Thu Jun 28 10:55:56 MSK 2018


On Thu, Jun 28, 2018 at 12:30:17AM -0700, Andrei Vagin wrote:
> On Tue, Jun 26, 2018 at 07:00:47PM +0200, Adrian Reber wrote:
> > I currently have the problem that 'read -n 1' hangs on Ubuntu and it is
> > not clear why. I have the following test case:
> > 
> > bash -c 'rm -f status; mkfifo status; exec 201<>status;  ./a.out 201; read -n1 -u 201'
> > 
> 
> bash -c 'rm -f status; mkfifo status; exec 200<>status; exec 201>status; exec 202<status; exec 200<&-; strace ./a.out 201; exec 201<&-; cat <&202 | hexdump' 
> 
> I think this version will work.

I don't understand it but it looks cool ;) Thanks for your help, but I
already have a solution using a python script to read from the
status_fd. I am currently waiting on the last travis run and will post
the patches later.

		Adrian


More information about the CRIU mailing list