13
0

Replace OOM segfault with abort :)

This commit is contained in:
Robin Gareus 2019-08-20 05:07:16 +02:00
parent 3ccaaf1ea5
commit 2d4eb7d505
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -168,11 +168,11 @@ Worker::run()
if (buf) {
buf_size = size;
} else {
PBD::error << "Worker: Error allocating memory"
<< endmsg;
buf_size = 0; // TODO: This is probably fatal
PBD::fatal << "Worker: Error allocating memory" << endmsg;
abort(); /*NOTREACHED*/
}
}
assert (buf);
if (_requests->read((uint8_t*)buf, size) < size) {
PBD::error << "Worker: Error reading body from request ring"