Open rohanday3 opened 4 months ago
Issue: The current code does not run on Windows due to the absence of the signal module functionalities for setting SIGPIPE.
signal
SIGPIPE
Solution: Added a conditional import and setting of signal only if the operating system is not Windows.
if sys.platform != 'win32': from signal import signal, SIGPIPE, SIG_DFL signal(SIGPIPE, SIG_DFL)
Verified that the code runs without errors on Windows. Ensured that the signal handling works correctly on non-Windows systems.
Please merge
Description
Issue: The current code does not run on Windows due to the absence of the
signal
module functionalities for settingSIGPIPE
.Solution: Added a conditional import and setting of
signal
only if the operating system is not Windows.Changes
Code
Testing
Verified that the code runs without errors on Windows. Ensured that the signal handling works correctly on non-Windows systems.