On Friday, 6 October 2006 14:47, Stefan Seyfried wrote:
> Hi,
> 
> when image size is set to 0, suspending fails with 
> 
> suspend: No swap space for suspend
> 
> This fixes it:
> 
> Index: suspend.c
> ===================================================================
> RCS file: /cvsroot/suspend/suspend/suspend.c,v
> retrieving revision 1.58
> diff -u -p -r1.58 suspend.c
> --- suspend.c 26 Sep 2006 12:30:33 -0000      1.58
> +++ suspend.c 6 Oct 2006 12:44:53 -0000
> @@ -688,7 +688,7 @@ int suspend_system(int snapshot_fd, int 
>               image_size = pref_image_size;
>       else
>               image_size = avail_swap;
> -     if (!image_size) {
> +     if (!avail_swap) {
>               fprintf(stderr, "suspend: No swap space for suspend\n");
>               return ENOSPC;
>       }

ACK


-- 
You never change things by fighting the existing reality.
                R. Buckminster Fuller

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Suspend-devel mailing list
Suspend-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/suspend-devel

Reply via email to