pthread_create is not checked for error.
From: Erik Hovland <erik@hovland.org>
---
libs/libmythtv/DeviceReadBuffer.cpp | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/libs/libmythtv/DeviceReadBuffer.cpp b/libs/libmythtv/DeviceReadBuffer.cpp
index a64701a..2fe1c80 100644
a
|
b
|
void DeviceReadBuffer::Start(void) |
99 | 99 | return; |
100 | 100 | } |
101 | 101 | |
102 | | pthread_create(&thread, NULL, boot_ringbuffer, this); |
| 102 | if (pthread_create(&thread, NULL, boot_ringbuffer, this) != 0) |
| 103 | VERBOSE(VB_IMPORTANT, |
| 104 | LOC_ERR + QString("Start(): pthread_create failed with %1") |
| 105 | .arg(strerror(errno))); |
103 | 106 | } |
104 | 107 | |
105 | 108 | void DeviceReadBuffer::Reset(const QString &streamName, int streamfd) |