summaryrefslogtreecommitdiff
path: root/package/lttng-tools/patches/patch-src_common_fd-handle_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2024-02-18 14:40:53 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2024-02-22 14:19:06 +0100
commit2a626dccea8356c73ac2cc2eb77cbcabca4cb7fc (patch)
tree051661b073b3d0feaa8832d5680b1fd93e8d9083 /package/lttng-tools/patches/patch-src_common_fd-handle_c
parent676dc71c7dbf47978b8bdabbef03d24a88b886a4 (diff)
lttng-tools: update to 2.13.11
Diffstat (limited to 'package/lttng-tools/patches/patch-src_common_fd-handle_c')
-rw-r--r--package/lttng-tools/patches/patch-src_common_fd-handle_c20
1 files changed, 20 insertions, 0 deletions
diff --git a/package/lttng-tools/patches/patch-src_common_fd-handle_c b/package/lttng-tools/patches/patch-src_common_fd-handle_c
new file mode 100644
index 000000000..079fcb539
--- /dev/null
+++ b/package/lttng-tools/patches/patch-src_common_fd-handle_c
@@ -0,0 +1,20 @@
+--- lttng-tools-2.13.11.orig/src/common/fd-handle.c 2023-08-21 20:32:56.530851999 +0200
++++ lttng-tools-2.13.11/src/common/fd-handle.c 2024-02-18 06:50:31.478798080 +0100
+@@ -21,7 +21,7 @@ static void fd_handle_release(struct urc
+ int ret;
+ struct fd_handle *handle = container_of(ref, struct fd_handle, ref);
+
+- assert(handle->fd >= 0);
++ //assert(handle->fd >= 0);
+ ret = close(handle->fd);
+ if (ret == -1) {
+ PERROR("Failed to close file descriptor of fd_handle upon release: fd = %d",
+@@ -78,7 +78,7 @@ void fd_handle_put(struct fd_handle *han
+ LTTNG_HIDDEN
+ int fd_handle_get_fd(struct fd_handle *handle)
+ {
+- assert(handle);
++ //assert(handle);
+ return handle->fd;
+ }
+