Skip to content

Conversation

@abrarnasirjaffari
Copy link
Contributor

This pull request resolves Issue #32, which caused a deadlock in the filter chain when one of the filters failed.

Changes Made:

  • Updated cupsfilters/filter.c to properly handle filter failures.
  • Implemented error handling to prevent deadlocks.
  • Improved logging for better debugging.

This fix ensures that the filter chain does not get stuck, improving reliability. Please review and let me know if any changes are needed. 🚀

}



Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove these added empty lines, they clutter the change.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure

if (log) log(ld, CF_LOGLEVEL_DEBUG,
"Closed the pipes for back and side channels");
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove this added empty line.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@tillkamppeter
Copy link
Member

tillkamppeter commented Mar 17, 2025

Now you have removed too many empty lines. Make sure that the sum of all your commits

https://github.com/OpenPrinting/libcupsfilters/pull/85/files

does not contain any whitespace-only changes, as addition or removal of blank lines, trailing spaces, or the newline in the end of the file.

if (log) log(ld, CF_LOGLEVEL_DEBUG,
"Closed the pipes for back and side channels");
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you make this go away? The original file ends with a newline character after this last bracket.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure

@tillkamppeter tillkamppeter merged commit 0831261 into OpenPrinting:master Mar 18, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants