Nick Craig-Wood
cdfa0beafb
lib/atexit: ensure OnError only calls cancel function once
...
Before this change the cancelFunc could be called twice, once while
handling the interrupt (CTRL-C) and once while unwinding the stack if
the function happened to finish.
This change ensure the cancelFunc is only called once by wrapping it
in a sync.Once
2023-03-22 12:50:58 +00:00
..
2023-03-22 12:50:58 +00:00
2023-03-03 15:51:00 +00:00
2023-02-04 13:32:26 +01:00
2022-11-09 16:29:23 +00:00
2022-08-28 13:43:51 +02:00
2022-11-10 12:07:18 +00:00
2022-08-30 11:16:26 +02:00
2022-11-07 11:41:47 +00:00
2021-10-20 22:56:19 +02:00
2023-01-17 11:35:19 +00:00
2021-07-07 17:59:26 +01:00
2023-02-24 15:08:38 +00:00
2023-03-22 11:47:35 +00:00
2021-09-09 20:43:59 +03:00
2022-11-07 11:41:47 +00:00
2022-08-28 13:43:51 +02:00
2022-08-28 13:43:51 +02:00
2023-02-24 15:08:38 +00:00
2022-08-05 16:35:41 +01:00
2022-11-07 11:41:47 +00:00
2020-06-15 21:34:37 +01:00
2021-11-07 11:53:30 +00:00
2020-10-14 15:21:31 +01:00
2022-11-07 11:41:47 +00:00
2023-03-17 11:09:08 +00:00
2022-07-04 11:24:59 +02:00
2023-03-03 12:37:01 +01:00
2022-06-13 21:13:50 +02:00