Laura Brehm
66aa0f672c
attach: don't return context cancelled error
...
In 3f0d90a2a9 we introduced a global
signal handler and made sure all the contexts passed into command
execution get (appropriately) cancelled when we get a SIGINT.
Due to that change, and how we use this context during `docker attach`,
we started to return the context cancelation error when a user signals
the running `docker attach`.
Since this is the intended behavior, we shouldn't return an error, so
this commit adds checks to ignore this specific error in this case.
Also adds a regression test.
Signed-off-by: Laura Brehm <laurabrehm@hey.com >
2024-07-25 00:49:33 +01:00
..
2023-04-10 01:12:00 +02:00
2024-07-25 00:49:33 +01:00
2024-07-25 00:49:33 +01:00
2024-07-04 15:22:18 +02:00
2017-10-26 12:21:02 -04:00
2023-12-12 22:30:16 +01:00
2024-07-17 01:25:34 +02:00
2024-07-04 19:57:43 +02:00
2024-06-10 17:41:09 +02:00
2024-07-17 15:59:30 +02:00
2024-07-17 15:59:30 +02:00
2023-12-12 22:30:16 +01:00
2024-07-04 15:22:18 +02:00
2024-07-17 01:25:32 +02:00
2024-07-04 01:35:12 +02:00
2023-12-12 22:30:16 +01:00
2023-05-06 00:34:34 +02:00
2023-11-20 16:02:16 +01:00
2022-05-13 21:26:38 +02:00
2023-11-20 16:02:18 +01:00
2023-05-03 17:01:08 +02:00
2024-06-18 12:17:13 +02:00
2024-07-17 01:25:34 +02:00
2024-07-04 15:22:18 +02:00
2024-01-29 11:16:38 +01:00
2024-07-04 15:22:18 +02:00
2023-12-12 22:30:16 +01:00
2024-06-10 21:19:32 +02:00
2024-06-10 21:19:31 +02:00
2024-07-04 15:22:18 +02:00
2024-07-04 15:22:18 +02:00
2023-12-12 22:30:16 +01:00
2024-07-04 01:35:12 +02:00
2024-04-02 15:54:29 +02:00
2023-12-12 22:30:16 +01:00
2024-07-17 01:25:34 +02:00
2024-07-04 01:35:12 +02:00
2023-12-12 22:30:16 +01:00
2024-07-17 15:59:30 +02:00
2024-07-17 15:59:30 +02:00
2023-11-08 15:15:09 +01:00
2023-11-08 15:15:09 +01:00
2023-05-05 18:23:03 +02:00
2021-05-24 19:37:53 +01:00
2023-11-08 15:15:09 +01:00
2024-07-04 15:22:18 +02:00
2024-06-20 13:04:54 +02:00
2024-06-20 13:04:54 +02:00
2024-06-10 21:19:31 +02:00
2024-07-17 01:25:34 +02:00
2023-12-12 22:30:16 +01:00
2023-10-13 22:09:04 +02:00
2023-11-20 19:52:41 +01:00
2024-07-04 15:22:18 +02:00
2024-07-17 01:25:34 +02:00
2023-07-24 09:54:11 +02:00
2024-06-10 17:41:09 +02:00
2024-07-03 17:09:41 +02:00