Commit a693d977 authored by Steve Langasek's avatar Steve Langasek
Browse files

Make sure we reset the pending_call to NULL when handling the event, so that we

correctly rehandle after a failed mount attempt.
parent e6d1bc24
......@@ -1925,6 +1925,10 @@ mounting_event_handled (void *data,
{
Mount *mnt = (Mount *)data;
/* We may generate new pending events below; make sure to clear
* the current one before we do. */
mnt->pending_call = NULL;
if (!strcmp(mnt->type, "swap")) {
nih_info ("mounting event handled for swap %s", mnt->device);
run_swapon (mnt);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment