summaryrefslogtreecommitdiff
path: root/dynotify.c
AgeCommit message (Collapse)Author
2024-05-31fix: dynotify: check curl retuen so when failed it will not crashXiao Pan
Before when no internet, curl error "curl_easy_perform() failed: Couldn't resolve host name" will cause `json_tokener_parse(chunk.response)` to crash the program with error "Segmentation fault (core dumped)". I guess maybe because chunk.response is NULL because curl error not assign value to it. Now I check return error code of curl to break the loop and wait a minute to see if error gone and proceed forward. Maybe also check chunk.response and json function error code somehow.
2024-05-28refactorXiao Pan
2024-05-28refactor: dynotify: less codeXiao Pan
2024-05-28dynotify: commentXiao Pan
2024-05-28Revert "refactor: dynotify"Xiao Pan
This reverts commit 70379c13e8d77d4e62c351df92a956b4cb3f2e5c. Because I like the old code that specify how large the string is.
2024-05-28refactor: dynotifyXiao Pan
2024-05-28fix: dynotify: memory leakXiao Pan
2024-05-28edit dynotify so maybe less RAM usageXiao Pan
2024-05-28add dynotifyXiao Pan