Use the qt_safe_* methods for open/read/write/close
This makes the operation thread-safe. It also helps with preventing the leaks
for child processes. Also, there is now some protection against EINTR when the
system call has to be restarted.
Thanks go to Thiago Macieira for providing the original patches.
Task-number: QTBUG-36824
Change-Id: I90cac87c5e1c55a57e5ba6c20313446c43c6d242
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
| commit | 7c8dd1d696c61c4c49ffcb2c1c1b455389edb771 |
| parent | 336fbee2e34c7eaf48550105d542cad1979c6684 |
| author | Laszlo Papp <lpapp@kde.org> |
| committer | The Qt Project <gerrit-noreply@qt-project.org> |
| commit time | Sun, 16 Feb 2014 11:59:29 +0100 |