mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-30 17:03:06 +01:00
Replace OOM segfault with abort :)
This commit is contained in:
parent
3ccaaf1ea5
commit
2d4eb7d505
1 changed files with 3 additions and 3 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue