Skip to content

Commit

Permalink
Merge pull request #1224 from storaged-project/udev-monitor-thread-2
Browse files Browse the repository at this point in the history
udiskslinuxprovider: Properly finalize GTaskThreadFunc
  • Loading branch information
tbzatek authored Nov 23, 2023
2 parents 7a5681f + dc1d446 commit bacff86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/udiskslinuxdriveata.c
Original file line number Diff line number Diff line change
Expand Up @@ -1779,6 +1779,7 @@ apply_configuration_thread_func (GTask *task,
out:
if (fd != -1)
close (fd);
g_task_return_boolean (task, TRUE);
}

/**
Expand Down
2 changes: 2 additions & 0 deletions src/udiskslinuxprovider.c
Original file line number Diff line number Diff line change
Expand Up @@ -944,6 +944,7 @@ perform_initial_housekeeping_for_drive (GTask *task,
error->message, g_quark_to_string (error->domain), error->code);
g_clear_error (&error);
}
g_task_return_boolean (task, TRUE);
}

/* ---------------------------------------------------------------------------------------------------- */
Expand Down Expand Up @@ -1588,6 +1589,7 @@ housekeeping_thread_func (GTask *task,
G_LOCK (provider_lock);
provider->housekeeping_running = FALSE;
G_UNLOCK (provider_lock);
g_task_return_boolean (task, TRUE);
}

/* called from the main thread on start-up and every 10 minutes or so */
Expand Down

0 comments on commit bacff86

Please sign in to comment.