[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/06: services: swap: Use 'restart-on-EINTR'.
From: |
Ludovic Courtès |
Subject: |
02/06: services: swap: Use 'restart-on-EINTR'. |
Date: |
Fri, 22 May 2015 09:51:21 +0000 |
civodul pushed a commit to branch master
in repository guix.
commit 60a56db0074259355a590851131aa23e1549fd8c
Author: Ludovic Courtès <address@hidden>
Date: Thu May 21 23:24:49 2015 +0200
services: swap: Use 'restart-on-EINTR'.
* gnu/services/base.scm (swap-service)[start, stop]: Use 'restart-on-EINTR'.
* guix/build/syscalls.scm (swapoff): Fix typo in 'throw' arguments.
---
gnu/services/base.scm | 4 ++--
guix/build/syscalls.scm | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/gnu/services/base.scm b/gnu/services/base.scm
index 697b939..d574420 100644
--- a/gnu/services/base.scm
+++ b/gnu/services/base.scm
@@ -851,10 +851,10 @@ gexp, to open it, and evaluate @var{close} to close it."
(requirement `(udev ,@requirement))
(documentation "Enable the given swap device.")
(start #~(lambda ()
- (swapon #$device)
+ (restart-on-EINTR (swapon #$device))
#t))
(stop #~(lambda _
- (swapoff #$device)
+ (restart-on-EINTR (swapoff #$device))
#f))
(respawn? #f)))))
diff --git a/guix/build/syscalls.scm b/guix/build/syscalls.scm
index 9ec7e8b..3585bf2 100644
--- a/guix/build/syscalls.scm
+++ b/guix/build/syscalls.scm
@@ -218,7 +218,7 @@ constants from <sys/mount.h>."
(let ((ret (proc (string->pointer device)))
(err (errno)))
(unless (zero? ret)
- (throw 'system-error "swapff" "~S: ~A"
+ (throw 'system-error "swapoff" "~S: ~A"
(list device (strerror err))
(list err)))))))
- branch master updated (4520354 -> 21461f2), Ludovic Courtès, 2015/05/22
- 01/06: syscalls: Add 'restart-on-EINTR'., Ludovic Courtès, 2015/05/22
- 03/06: gnu: guix: Update development snapshot., Ludovic Courtès, 2015/05/22
- 02/06: services: swap: Use 'restart-on-EINTR'.,
Ludovic Courtès <=
- 05/06: doc: Add a cross-reference to "origin Reference"., Ludovic Courtès, 2015/05/22
- 04/06: doc: Make '--manifest' more visible., Ludovic Courtès, 2015/05/22
- 06/06: doc: More cross-references., Ludovic Courtès, 2015/05/22