Commit 2c9ad5c
committed
zloop: ensure zsys_init() when creating zloop
If no sockets or actors are used in zloop, `zsys_init()` does not get
run and zsys interrupt handler does not get initialized. This means that
interrupts will not work correctly in zloop if, for example, only timers
are used. `zsys_init()` is safe to call multiple times, so we ensure
that it's called when new zloop instance is created.1 parent 4af175a commit 2c9ad5c
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
| 316 | + | |
| 317 | + | |
316 | 318 | | |
317 | 319 | | |
318 | 320 | | |
| |||
0 commit comments