summaryrefslogtreecommitdiffstats
path: root/xlators/features/changelog/src/changelog-rpc-common.c
diff options
context:
space:
mode:
authorKaleb S. KEITHLEY <kkeithle@redhat.com>2015-10-01 16:16:52 -0400
committerJeff Darcy <jdarcy@redhat.com>2015-10-28 16:34:45 -0700
commit36ea43b93b8476595ac22da031bc42a807ccc852 (patch)
tree314c44d79bdaea5f8e91676d0996b9313b5a843b /xlators/features/changelog/src/changelog-rpc-common.c
parent323e71617fee5020324540776d0d4469577f0afe (diff)
core: use syscall wrappers instead of direct syscalls
various xlators and other components are invoking system calls directly instead of using the libglusterfs/syscall.[ch] wrappers. If not using the system call wrappers there should be a comment in the source explaining why the wrapper isn't used. Change-Id: I8ef94c48728666465abf126c778b70c9e5c00e47 BUG: 1267967 Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com> Reviewed-on: http://review.gluster.org/12273 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
Diffstat (limited to 'xlators/features/changelog/src/changelog-rpc-common.c')
-rw-r--r--xlators/features/changelog/src/changelog-rpc-common.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/xlators/features/changelog/src/changelog-rpc-common.c b/xlators/features/changelog/src/changelog-rpc-common.c
index e8905a87f62..4525923d34d 100644
--- a/xlators/features/changelog/src/changelog-rpc-common.c
+++ b/xlators/features/changelog/src/changelog-rpc-common.c
@@ -10,6 +10,8 @@
#include "changelog-rpc-common.h"
#include "changelog-messages.h"
+
+#include "syscall.h"
/**
*****************************************************
Client Interface
@@ -271,7 +273,7 @@ changelog_rpc_server_destroy (xlator_t *this, rpcsvc_t *rpc, char *sockfile,
}
(void) rpcsvc_unregister_notify (rpc, fn, this);
- unlink (sockfile);
+ sys_unlink (sockfile);
GF_FREE (rpc);
}