Use GRND_NONBLOCK of getrandom call

Since the getrandom syscall patch(f356fb56fb9e Detect and support
syscall(SYS_getrandom, [..]) as well), some arm machine stuck during
systemd boot because the dbus uses the expat library and it hangs
inside the writeRandomBytes_getrandom function. Without the
GRND_NONBLOCK flag, the kernel will wait until the nonblocking_pool has
been initialized(See the getrandom syscall of the
linux/drivers/char/random.c). To prevent the blocking, we can add the
GRND_NONBLOCK flag and omit the comparison of the EAGAIN return.

Signed-off-by: Chanho Park <chanho61.park@samsung.com>
1 file changed
tree: 6b2caf5676d8cd724f4eca4422313e77b3a1636c
  1. expat/
  2. testdata/
  3. .gitignore
  4. .travis.yml