gluon-packages/admin/autoupdater/src
Matthias Schiffer a5259c0245
autoupdater: improve handling of interrupted HTTP requests
Check return code of uloop_run() and pass the signal number up when the
loop was interrupted. After cleanup, uninstall uloop's signal handlers
and re-raise the signal to terminate the process.

This allows interrupting the autoupdater using Ctrl-C during downloads,
instead of having it continue with the next mirror (if multple are
configured). As uloop's signal handlers only set a flag to interrupt
uloop_run() and have otherwise no effect, the autoupdater can still only
be interrupted during HTTP requests, ensuring we can't leave the system
in an inconsistent state.
2023-02-24 22:34:26 +01:00
..
CMakeLists.txt autoupdater: new implementation 2018-01-13 00:22:27 +01:00
autoupdater.c autoupdater: improve handling of interrupted HTTP requests 2023-02-24 22:34:26 +01:00
hexutil.c autoupdater: new implementation 2018-01-13 00:22:27 +01:00
hexutil.h autoupdater: new implementation 2018-01-13 00:22:27 +01:00
manifest.c autoupdater: use safe allocation functions 2018-02-22 02:39:48 +01:00
manifest.h autoupdater: new implementation 2018-01-13 00:22:27 +01:00
settings.c autoupdater: use safe allocation functions 2018-02-22 02:39:48 +01:00
settings.h autoupdater: allow skipping the version check (#187) 2018-06-03 12:13:50 +02:00
uclient.c autoupdater: improve handling of interrupted HTTP requests 2023-02-24 22:34:26 +01:00
uclient.h autoupdater: improve handling of interrupted HTTP requests 2023-02-24 22:34:26 +01:00
util.c autoupdater: add safe allocation functions 2018-02-22 02:39:47 +01:00
util.h autoupdater: add safe allocation functions 2018-02-22 02:39:47 +01:00
version.c autoupdater: consider end of string smaller than all characters except for '~' 2018-12-18 23:16:17 +01:00
version.h autoupdater: new implementation 2018-01-13 00:22:27 +01:00