patch-src_common_fd-handle_c 684 B

1234567891011121314151617181920
  1. --- lttng-tools-2.13.11.orig/src/common/fd-handle.c 2023-08-21 20:32:56.530851999 +0200
  2. +++ lttng-tools-2.13.11/src/common/fd-handle.c 2024-02-18 06:50:31.478798080 +0100
  3. @@ -21,7 +21,7 @@ static void fd_handle_release(struct urc
  4. int ret;
  5. struct fd_handle *handle = container_of(ref, struct fd_handle, ref);
  6. - assert(handle->fd >= 0);
  7. + //assert(handle->fd >= 0);
  8. ret = close(handle->fd);
  9. if (ret == -1) {
  10. PERROR("Failed to close file descriptor of fd_handle upon release: fd = %d",
  11. @@ -78,7 +78,7 @@ void fd_handle_put(struct fd_handle *han
  12. LTTNG_HIDDEN
  13. int fd_handle_get_fd(struct fd_handle *handle)
  14. {
  15. - assert(handle);
  16. + //assert(handle);
  17. return handle->fd;
  18. }