We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bada798 commit 46a977fCopy full SHA for 46a977f
platform/mellanox/mlnx-platform-api/sonic_platform/inotify_helper.py
@@ -1,5 +1,6 @@
1
#
2
-# Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES.
+# SPDX-FileCopyrightText: NVIDIA CORPORATION & AFFILIATES
3
+# Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
4
# Apache-2.0
5
6
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -18,6 +19,9 @@
18
19
"""Helper code for Inotify Implementation for reading file until timeout"""
20
import os
21
import errno
22
+# Inotify causes an exception when DEBUG env variable is set to a non-integer convertible
23
+# https://github.com/dsoprea/PyInotify/blob/0.2.10/inotify/adapters.py#L37
24
+os.environ['DEBUG'] = '0'
25
import inotify.adapters
26
27
try:
0 commit comments