Replace OOM segfault with abort :)
This commit is contained in:
parent
3ccaaf1ea5
commit
2d4eb7d505
@ -168,11 +168,11 @@ Worker::run()
|
|||||||
if (buf) {
|
if (buf) {
|
||||||
buf_size = size;
|
buf_size = size;
|
||||||
} else {
|
} else {
|
||||||
PBD::error << "Worker: Error allocating memory"
|
PBD::fatal << "Worker: Error allocating memory" << endmsg;
|
||||||
<< endmsg;
|
abort(); /*NOTREACHED*/
|
||||||
buf_size = 0; // TODO: This is probably fatal
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
assert (buf);
|
||||||
|
|
||||||
if (_requests->read((uint8_t*)buf, size) < size) {
|
if (_requests->read((uint8_t*)buf, size) < size) {
|
||||||
PBD::error << "Worker: Error reading body from request ring"
|
PBD::error << "Worker: Error reading body from request ring"
|
||||||
|
Loading…
Reference in New Issue
Block a user