Hello,

Current implementation does not cleanup console settings if abort was
selected by user.
This should fix it.

Part of pending series at:
http://alon.barlev.googlepages.com/suspend-patches.tar.bz2

Best Regards,
Alon Bar-Lev.

---

--- suspend.org/suspend.c       2007-07-29 21:30:27.000000000 +0300
+++ suspend.work/suspend.c      2007-08-11 21:53:35.000000000 +0300
@@ -498,5 +559,6 @@ static int save_image(struct swap_map_ha
                                        case ABORT_KEY_CODE:
                                                if (abort_possible) {
                                                        printf(" aborted!\n");
-                                                       return -EINTR;
+                                                       error = -EINTR;
+                                                       goto cleanup;
                                                }
@@ -513,6 +576,8 @@ static int save_image(struct swap_map_ha
                        nr_pages++;
                }
        } while (ret > 0);
+
+cleanup:
        if (ret < 0)
                error = -errno;
 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Suspend-devel mailing list
Suspend-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/suspend-devel

Reply via email to