Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix possible deadlock during log setup #10905

Merged
merged 1 commit into from
Jun 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions changelog/unreleased/10905
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Bugfix: Possible deadlock during log setup

If an error occured during the setup of the log file, it was possible that the client got deadlocked.

https://github.com/owncloud/client/pull/10905
2 changes: 1 addition & 1 deletion src/libsync/logger.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class OWNCLOUDSYNC_EXPORT Logger : public QObject
bool _doFileFlush = false;
bool _logDebug = false;
QScopedPointer<QTextStream> _logstream;
mutable QMutex _mutex;
mutable QRecursiveMutex _mutex;
QString _logDirectory;
bool _temporaryFolderLogDir = false;
QSet<QString> _logRules;
Expand Down