]> git.proxmox.com Git - pve-qemu-kvm.git/blob - debian/patches/old/glusterfs-daemonize.patch
bump version to 2.9.0-1~rc2+5
[pve-qemu-kvm.git] / debian / patches / old / glusterfs-daemonize.patch
1 glusterfs: do not log to stdout if daemonized
2
3 Else stdout is not closed correctly.
4
5 Index: new/block/gluster.c
6 ===================================================================
7 --- new.orig/block/gluster.c 2014-08-22 13:21:39.000000000 +0200
8 +++ new/block/gluster.c 2014-08-22 13:25:18.000000000 +0200
9 @@ -196,9 +196,11 @@
10 * TODO: Use GF_LOG_ERROR instead of hard code value of 4 here when
11 * GlusterFS makes GF_LOG_* macros available to libgfapi users.
12 */
13 - ret = glfs_set_logging(glfs, "-", 4);
14 - if (ret < 0) {
15 - goto out;
16 + if (!is_daemonized()) {
17 + ret = glfs_set_logging(glfs, "-", 4);
18 + if (ret < 0) {
19 + goto out;
20 + }
21 }
22
23 ret = glfs_init(glfs);