1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 03:27:58 +03:00
LVM2 mirror repository https://sourceware.org/lvm2/
Go to file
Mikulas Patocka 3395d72881 Change exit() to _exit() in the child process. exit flushes stdio file buffers,
_exit doesn't. If there were some open files, an error in exec and subsequent
exit() would cause the buffers to be flushed twice.

Example:

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/wait.h>

int main()
{
	printf("buu");
	if (!fork()) {
		execl("/bin/true-not-exists", "/bin/true", NULL);
		exit(1);
	}
	wait(NULL);
	return 0;
}

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com

---
 daemons/dmeventd/libdevmapper-event.c |    2 +-
 lib/misc/lvm-exec.c                   |    2 +-
 test/harness.c                        |    3 ++-
 tools/dmsetup.c                       |    2 +-
 4 files changed, 5 insertions(+), 4 deletions(-)
2009-07-13 21:26:41 +00:00
autoconf extended configure with --enable-profiling for compiling code with gcov info 2008-06-27 15:35:09 +00:00
daemons Change exit() to _exit() in the child process. exit flushes stdio file buffers, 2009-07-13 21:26:41 +00:00
doc Use the MD device's stripe-width, instead of chunk_size, to align the 2009-07-06 19:04:24 +00:00
include Introduce lvm2_install target. 2009-05-11 10:28:45 +00:00
lib Change exit() to _exit() in the child process. exit flushes stdio file buffers, 2009-07-13 21:26:41 +00:00
libdm Add dm_log_with_errno and dm_log_with_errno_init, deprecating the old 2009-07-10 09:59:37 +00:00
liblvm Rename liblvm.so to liblvm2app.so and use configure --enable-applib. 2009-05-22 14:44:59 +00:00
man Fix dev name mismatch in vgcreate man page example. 2009-07-13 11:25:35 +00:00
old-tests Correct typo in comments: s/is part of the LVM2/is part of LVM2/. 2007-09-21 10:16:45 +00:00
po Add dm_log_with_errno and dm_log_with_errno_init, deprecating the old 2009-07-10 09:59:37 +00:00
scripts Various vgimportclone fixes: 2009-06-17 15:47:01 +00:00
test Change exit() to _exit() in the child process. exit flushes stdio file buffers, 2009-07-13 21:26:41 +00:00
tools Change exit() to _exit() in the child process. exit flushes stdio file buffers, 2009-07-13 21:26:41 +00:00
configure Rename liblvm.so to liblvm2app.so and use configure --enable-applib. 2009-05-22 14:44:59 +00:00
configure.in Rename liblvm.so to liblvm2app.so and use configure --enable-applib. 2009-05-22 14:44:59 +00:00
COPYING Outline docs 2001-12-31 16:12:40 +00:00
COPYING.LIB Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1. 2007-08-20 20:55:30 +00:00
INSTALL quick review of docs 2008-11-04 17:49:22 +00:00
make.tmpl.in Introduce lvm2_install target. 2009-05-11 10:28:45 +00:00
Makefile.in Rename liblvm.so to liblvm2app.so and use configure --enable-applib. 2009-05-22 14:44:59 +00:00
README quick review of docs 2008-11-04 17:49:22 +00:00
VERSION post-release 2009-07-01 09:31:46 +00:00
VERSION_DM post-release 2009-07-01 09:31:46 +00:00
WHATS_NEW Make cmd->cmd_line const. 2009-07-13 19:49:48 +00:00
WHATS_NEW_DM Add dm_log_with_errno and dm_log_with_errno_init, deprecating the old 2009-07-10 09:59:37 +00:00

This tree contains the LVM2 and device-mapper tools and libraries.

For more information about LVM2 read the changelog in the WHATS_NEW file.
Installation instructions are in INSTALL.

There is no warranty - see COPYING and COPYING.LIB.

Tarballs are available from:
  ftp://sources.redhat.com/pub/lvm2/

To access the CVS tree use:
  cvs -d :pserver:cvs@sources.redhat.com:/cvs/lvm2 login
  CVS password: cvs
  cvs -d :pserver:cvs@sources.redhat.com:/cvs/lvm2 co LVM2

Mailing list for general discussion related to LVM2:
  linux-lvm@redhat.com
  Subscribe from https://www.redhat.com/mailman/listinfo/linux-lvm

Mailing list for LVM2 development, patches and commits:
  lvm-devel@redhat.com
  Subscribe from https://www.redhat.com/mailman/listinfo/linux-lvm

Mailing list for device-mapper development, including kernel patches
and multipath-tools:
  dm-devel@redhat.com
  Subscribe from https://www.redhat.com/mailman/listinfo/dm-devel