Diffusion KIO 512967f6f4e8

Fix exit and crash in kio_file when put() fails in readData.

Authored by dfaure on Sep 6 2019, 2:42 PM.

Description

Fix exit and crash in kio_file when put() fails in readData.

This strange call to ::exit() has been there forever (since the
make_it_cool branch merge in 2000), but the recently added LegacyCodec
global object leads to a crash (mem corruption says glibc) when this
brutal exit happens. Let's just not exit, but handle the error properly.

Testcase: jobtest asyncStoredPutReadyReadAfterFinish

Details

Committed
dfaureSep 6 2019, 2:47 PM
Parents
R241:9c88718d2d03: autotests: use QVERIFY2 to print the job error if exec() fails
Branches
Unknown
Tags
Unknown