clean: remove buildinfo/changes
[pve-qemu-kvm.git] / debian / patches / old / glusterfs-daemonize.patch
blobe657dcca42fe65b7fe334bcf048ff7203d67f6a1
1 glusterfs: do not log to stdout if daemonized
3 Else stdout is not closed correctly.
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.
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 + }
23 ret = glfs_init(glfs);