projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b356c9
)
curl-util: do not configure new io event source when the event loop is already dead
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Sat, 23 Nov 2024 16:05:47 +0000
(
01:05
+0900)
committer
Daan De Meyer
<daan.j.demeyer@gmail.com>
Sat, 23 Nov 2024 21:49:57 +0000
(22:49 +0100)
Similar to
c5ecf0949460dd0bf3211db128a385ce6375252e
, but for io event source.
Fixes #35322.
src/import/curl-util.c
patch
|
blob
|
history
diff --git
a/src/import/curl-util.c
b/src/import/curl-util.c
index cc97ce6b5562209361d3a11919225dbca1f331f6..85c4f9b4620b90795db3ed413d7bee5594fa8ede 100644
(file)
--- a/
src/import/curl-util.c
+++ b/
src/import/curl-util.c
@@
-75,6
+75,10
@@
static int curl_glue_socket_callback(CURL *curl, curl_socket_t s, int action, vo
return 0;
}
+ /* Don't configure io event source anymore when the event loop is dead already. */
+ if (g->event && sd_event_get_state(g->event) == SD_EVENT_FINISHED)
+ return 0;
+
r = hashmap_ensure_allocated(&g->ios, &trivial_hash_ops);
if (r < 0) {
log_oom();