Tree
- Tree:
ae590acf119eec6bef377cfbb9849497e4840d67- Date:
- Message:
- bxnotify.c: Refactor error and exit handling for suite consistency. - Update the cleanup() function signature to accept an integer error code (int err), allowing the function to terminate the process via exit() based on runtime success or failure. - Modify die() to call cleanup(1) instead of exit(1), ensuring all resources (X11 connections, text buffers, registry positions) are properly freed even when terminating due to an error. - Update the successful exit path in main() to call cleanup(0). - Remove the explicit 'return 0' from main(), as cleanup() now handles process termination directly. - Ensure the forward declaration for cleanup() matches the updated implementation to prevent C11 type-mismatch warnings.
| .gitignore | commits | blame |
| Makefile | commits | blame |
| bxnotify.c | commits | blame |
| config.def.h | commits | blame |
