datakit
datakit copied to clipboard
head.live doesn't work on Linux 3.16.0 (Debian 8)
Moby (Linux 4.1.18) requires an EOF to push data to the application, with two EOFs in a row meaning a real end-of-file. Perhaps older versions treat a single EOF as end-of-file, because I see:
user@nuc1:~$ uname -a
Linux nuc1 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u3 (2016-01-17) x86_64 GNU/Linux
user@nuc1:~$ cat /mnt/datakit/branch/master/head.live
89bfdb2c4f920bc043c044c1945bb2e2d836238d
user@nuc1:~$
Confirmed that upgrading to Linux 4.3.0 fixed the problem:
root@nuc1:/mnt/datakit/branch/master# uname -a
Linux nuc1 4.3.0-0.bpo.1-amd64 #1 SMP Debian 4.3.3-7~bpo8+1 (2016-01-19) x86_64 GNU/Linux
root@nuc1:/mnt/datakit/branch/master# cat head.live
89bfdb2c4f920bc043c044c1945bb2e2d836238d
[ waits ]
Should we add a check to the kernel version?