No description
Find a file
Kir Kolyshkin e49faff1ff fopen_proc(), opendir_proc(): don't print two errors
Both fopen_proc() and opendir_proc() are calling open_proc().
If open_proc() fails, it prints an error message. Before this
patch, a second error message was printed due to missing brackets.
This second message is a bit more specific (it tells the exact
file/dir we failed to open) but it is redundant, because more
generic error was already printed by open_proc(). It is also
can be misleading because for the second message we reuse
the same errno while we should not.

So, let's remove this second error message print by using brackets.

Alternatively, we could leave this as is (just fixing indentation)
and let two errors be printed -- there is nothing wrong with that,
but I think in this case less messages is better.

This is a fix to commit 5661d80.

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Acked-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2013-11-21 13:40:35 +04:00
arch headers: Drop _LINUX_CAPABILITY 2013-11-15 16:59:40 +04:00
Documentation docs: Add 'service' command description 2013-11-01 14:29:12 +04:00
include fopen_proc(), opendir_proc(): don't print two errors 2013-11-21 13:40:35 +04:00
lib lib: Don't compile-in util-fd.c 2013-11-07 16:08:29 +04:00
pie rst: Add comment about old memory unmap 2013-11-20 14:41:34 +04:00
protobuf service: Add support for check request 2013-11-20 14:16:44 +04:00
scripts build: Move pie/gen-offsets.sh into scripts/ 2013-10-15 11:30:41 +04:00
test zdtm/selfexe00: append a null byte to paths 2013-11-15 16:32:00 +04:00
.gitignore git: Don't track *.so files 2013-08-29 14:48:17 +04:00
.mailmap repo: Add mailmap file 2012-03-25 23:31:20 +04:00
COPYING Add LGPL licence for library directory 2013-04-01 12:29:06 +04:00
cr-check.c headers: Move prctl constants to prctl.h 2013-11-14 22:19:43 +04:00
cr-dump.c crtools: move cr_options in a separate header 2013-11-06 18:17:52 +04:00
cr-exec.c crtools: don't include util.h in crtools.h 2013-11-06 15:42:12 +04:00
cr-restore.c pidfile: Don't push opts.pidfile as write_pidfile arg 2013-11-20 14:26:41 +04:00
cr-service.c pidfile: Don't push opts.pidfile as write_pidfile arg 2013-11-20 14:26:41 +04:00
cr-show.c tcp: save the amount of unsent data in the socket send queue 2013-11-14 17:14:31 +04:00
CREDITS Add the CREDITS file 2012-07-30 13:52:37 +04:00
crtools crtools: rename binary to criu 2013-04-30 20:17:55 +04:00
crtools.c v2 crtools: init log after changing directory to work_dir 2013-11-19 22:50:20 +04:00
eventfd.c crtools: move pid_rst_prio to pid.h 2013-11-06 18:18:12 +04:00
eventpoll.c crtools: move pid_rst_prio to pid.h 2013-11-06 18:18:12 +04:00
fifo.c crtools: move pid_rst_prio to pid.h 2013-11-06 18:18:12 +04:00
file-ids.c x86: moved x86-specific files into the directory arch/x86. 2013-01-09 17:02:47 +04:00
file-lock.c crtools: move cr_options in a separate header 2013-11-06 18:17:52 +04:00
files-reg.c files: Extend comment about "overlinked" files dump and restore 2013-11-15 00:26:54 +04:00
files.c crtools: move pid_rst_prio to pid.h 2013-11-06 18:18:12 +04:00
fsnotify.c headers: Move fh_t to fsnotify.c 2013-11-14 22:13:43 +04:00
image-desc.c net: Save and restore iptables in net namespace 2013-10-04 02:51:33 +04:00
image.c image: Open parent image dir with -at calls 2013-11-18 13:22:10 +04:00
ipc_ns.c crtools: move cr_options in a separate header 2013-11-06 18:17:52 +04:00
kcmp-ids.c x86: moved x86-specific files into the directory arch/x86. 2013-01-09 17:02:47 +04:00
kerndat.c rst: Read sys.last_cap only once in kerndat 2013-10-12 00:03:25 +04:00
libnetlink.c netlink: Lower netlink error report log level 2013-07-04 15:49:02 +04:00
log.c pidfile: Don't push opts.pidfile as write_pidfile arg 2013-11-20 14:26:41 +04:00
Makefile cr: identify LDARCH and ARCH by default 2013-11-01 14:27:07 +04:00
Makefile.config Add strlcpy helper 2013-08-28 19:06:43 +04:00
Makefile.crtools rst: Introduce an engine to allocate memory on restore 2013-11-02 01:01:48 +04:00
Makefile.inc Makefiles: add install target 2013-05-03 01:56:30 +04:00
mem.c headers: Move fcntl related data to include/fcntl.h 2013-11-14 22:13:10 +04:00
mount.c crtools: move cr_options in a separate header 2013-11-06 18:17:52 +04:00
namespaces.c crtools: don't include cr-show.h in crtools.h 2013-11-06 15:42:14 +04:00
net.c net: Don't create lo on netns restore 2013-11-08 16:52:20 +04:00
netfilter.c iptables: use cr_system instead of system 2013-10-02 20:09:37 +04:00
page-pipe.c headers: Move fcntl related data to include/fcntl.h 2013-11-14 22:13:10 +04:00
page-read.c crtools: don't include image.h in crtools.h 2013-11-06 15:42:09 +04:00
page-xfer.c pidfile: Don't push opts.pidfile as write_pidfile arg 2013-11-20 14:26:41 +04:00
parasite-syscall.c crtools: move all stuff about fdset in a separate header 2013-11-06 15:24:48 +04:00
pipes.c crtools: move pid_rst_prio to pid.h 2013-11-06 18:18:12 +04:00
proc_parse.c headers: Move MADV definitions to own mman.h 2013-11-14 22:48:30 +04:00
protobuf-desc.c build: Generate most of the pb-desc automatically 2013-08-23 21:47:31 +04:00
protobuf.c crtools: don't include image.h in crtools.h 2013-11-06 15:42:09 +04:00
pstree.c pstree: don't include restorer.h in pstree.c 2013-11-08 16:46:32 +04:00
ptrace.c crtools: move pid_rst_prio to pid.h 2013-11-06 18:18:12 +04:00
rbtree.c code: Fix spaced indentation where found 2012-08-11 21:36:03 +04:00
README README: crtools to criu rename 2013-05-10 11:02:02 +04:00
rst-malloc.c rst-mem: Grow buffer more than 2 pages if required 2013-11-08 19:48:44 +04:00
security.c crtools: don't include restorer.h in proc_parse.h 2013-11-06 12:37:55 +04:00
shmem.c headers: Move fcntl related data to include/fcntl.h 2013-11-14 22:13:10 +04:00
sigframe.c sigframe: don't include restorer.h 2013-11-06 12:37:38 +04:00
signalfd.c crtools: move pid_rst_prio to pid.h 2013-11-06 18:18:12 +04:00
sk-inet.c crtools: move cr_options in a separate header 2013-11-06 18:17:52 +04:00
sk-netlink.c crtools: move pid_rst_prio to pid.h 2013-11-06 18:18:12 +04:00
sk-packet.c crtools: move all stuff about fdset in a separate header 2013-11-06 15:24:48 +04:00
sk-queue.c crtools: move pid_rst_prio to pid.h 2013-11-06 18:18:12 +04:00
sk-tcp.c tcp: restore the boundary between sent and unsent data 2013-11-14 17:15:44 +04:00
sk-unix.c crtools: move cr_options in a separate header 2013-11-06 18:17:52 +04:00
sockets.c crtools: move pid_rst_prio to pid.h 2013-11-06 18:18:12 +04:00
stats.c v2 stats: write stats at work directory 2013-11-16 00:05:53 +04:00
string.c Add strlcpy helper 2013-08-28 19:06:43 +04:00
sysctl.c sysctl: Don't forget to close fds 2013-04-05 08:23:17 +04:00
tty.c hdrs: minor cleaup 2013-11-07 15:13:50 +04:00
tun.c crtools: move cr_options in a separate header 2013-11-06 18:17:52 +04:00
util.c crtools: move cr_options in a separate header 2013-11-06 18:17:52 +04:00
uts_ns.c crtools: move pid_rst_prio to pid.h 2013-11-06 18:18:12 +04:00

criu
====

An utility to checkpoint/restore tasks.

Some code snippets are borrowed from

 - Linux kernel (http://kernel.org/)
 - git (http://git-scm.com/)
 - kvm-tools (https://github.com/penberg/linux-kvm)
 - ptrace-parasite (https://code.google.com/p/ptrace-parasite/)

Many thanks to these projects.

Licensed under GPLv2 (http://www.gnu.org/licenses/gpl-2.0.txt)