diff options
author | Yuriy M. Kaminskiy | 2016-01-30 14:18:39 +0100 |
---|---|---|
committer | Karel Zak | 2016-02-17 13:54:56 +0100 |
commit | 99fcafdf5f9c8cf7dedeeb1246210013da58dfd7 (patch) | |
tree | 9145744cae664d5561a0d342a14f52c1a68ba3a4 /.travis.yml | |
parent | agetty: support \e{name} for issue file (diff) | |
download | kernel-qcow2-util-linux-99fcafdf5f9c8cf7dedeeb1246210013da58dfd7.tar.gz kernel-qcow2-util-linux-99fcafdf5f9c8cf7dedeeb1246210013da58dfd7.tar.xz kernel-qcow2-util-linux-99fcafdf5f9c8cf7dedeeb1246210013da58dfd7.zip |
unshare: fix busyloop and reduce racing probability
Replace busy-loop with waiting on pipe from parent.
Note: reduces racing probability, but still there are window where
it is possible (if parent unshare process will be [externally] killed
between successful read(fds[0]) and mount() calls).
[kzak@redhat.com: - use all-io.h to avoid loops around write() and read(),
- use less generic 0x06 byte to sync parent and child]
Signed-off-by: Yuriy M. Kaminskiy <yumkam@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to '.travis.yml')
0 files changed, 0 insertions, 0 deletions