summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-09-24 12:42:30 +0200
committerLennart Poettering <lennart@poettering.net>2015-09-29 21:55:52 +0200
commit65359589c2c22db881fd9c14e989941c19eff9a1 (patch)
tree9816ad754882092109892ada1df26a5eed4dde79 /src/shared
parent2cc7b0a25f7307a50fdad38ee4a2c6b9d856fff9 (diff)
downloadsystemd-65359589c2c22db881fd9c14e989941c19eff9a1.tar.gz
systemd-65359589c2c22db881fd9c14e989941c19eff9a1.tar.bz2
systemd-65359589c2c22db881fd9c14e989941c19eff9a1.zip
pager: minor simplification
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/pager.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/shared/pager.c b/src/shared/pager.c
index 41da820938..1fa87a784e 100644
--- a/src/shared/pager.c
+++ b/src/shared/pager.c
@@ -74,9 +74,8 @@ int pager_open(bool jump_to_end) {
pager_pid = fork();
if (pager_pid < 0) {
- r = log_error_errno(errno, "Failed to fork pager: %m");
safe_close_pair(fd);
- return r;
+ return log_error_errno(errno, "Failed to fork pager: %m");
}
/* In the child start the pager */