Paul Holzinger
ddece758a4
libpod: remove UpdateContainerStatus()
...
There are two major problems with UpdateContainerStatus()
First, it can deadlock when the the state json is to big as it tries to
read stderr until EOF but it will never hit EOF as long as the runtime
process is alive. This means if the runtime json is to big to git into
the pipe buffer we deadlock ourselves.
Second, the function modifies the container state struct and even adds
and exit code to the db however when it is called from the stop() code
path we will be unlocked here.
While the first problem is easy to fix the second one not so much. And
when we cannot update the state there is no point in reading the from
runtime in the first place as such remove the function as it does more
harm then good.
And add some warnings the the functions that might be called unlocked.
Fixes #22246
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-08-16 15:34:16 +02:00
..
2024-07-12 15:11:34 +02:00
2024-02-08 09:35:39 -05:00
2024-04-17 08:23:50 -04:00
2017-11-01 11:24:59 -04:00
2024-01-04 11:53:38 +02:00
2024-08-12 11:38:02 -04:00
2024-02-08 09:35:39 -05:00
2024-04-19 09:52:14 +02:00
2024-07-15 11:41:28 +02:00
2024-07-11 09:39:56 -04:00
2024-04-19 09:52:14 +02:00
2024-02-08 09:35:39 -05:00
2024-08-15 11:07:27 +02:00
2024-02-08 09:35:39 -05:00
2024-06-21 10:07:55 +02:00
2024-02-08 09:35:39 -05:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2024-02-12 09:13:39 -05:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-04-17 08:23:51 -04:00
2024-06-24 18:52:02 +02:00
2024-08-09 10:57:24 +02:00
2024-01-04 11:53:38 +02:00
2024-08-15 11:07:27 +02:00
2024-01-04 11:53:38 +02:00
2024-08-15 11:07:27 +02:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-01-04 11:53:38 +02:00
2024-04-08 11:36:50 +08:00
2024-02-08 09:35:39 -05:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-06-27 10:50:17 +02:00
2024-06-26 11:10:56 +02:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2024-07-30 14:39:08 +02:00
2024-02-08 09:35:39 -05:00
2022-03-23 19:05:29 +01:00
2024-04-19 17:24:44 +02:00
2024-06-04 18:03:46 +02:00
2024-06-04 18:03:46 +02:00
2024-06-04 18:03:46 +02:00
2024-07-19 15:16:55 +02:00
2024-02-08 09:35:39 -05:00
2024-04-10 11:55:35 +02:00
2024-02-08 09:35:39 -05:00
2024-03-26 09:56:48 -04:00
2024-07-24 12:10:48 +02:00
2024-01-04 11:53:38 +02:00
2024-07-30 14:39:08 +02:00
2024-03-19 12:09:31 +01:00
2024-02-08 09:35:39 -05:00
2024-03-19 12:09:31 +01:00
2024-01-04 11:53:38 +02:00
2024-03-19 12:09:31 +01:00
2024-02-08 09:35:39 -05:00
2024-07-12 15:11:34 +02:00
2024-01-04 11:53:38 +02:00
2024-01-04 11:53:38 +02:00
2024-08-16 15:34:16 +02:00
2024-02-12 09:13:39 -05:00
2024-02-02 11:02:43 -05:00
2024-02-02 11:02:43 -05:00
2024-06-21 18:01:26 +02:00
2024-06-21 18:01:26 +02:00
2024-01-04 11:53:38 +02:00
2024-08-16 15:34:16 +02:00
2024-07-30 14:39:08 +02:00
2024-08-16 15:34:16 +02:00
2024-06-12 15:48:36 +02:00
2024-08-12 12:11:26 +02:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-07-22 10:30:42 +02:00
2024-05-29 11:10:55 +02:00
2024-01-04 11:53:38 +02:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2024-01-04 11:53:38 +02:00
2024-01-04 11:53:38 +02:00
2024-07-05 10:27:42 +02:00
2024-04-05 10:07:42 -04:00
2024-04-24 12:07:38 +08:00
2024-04-05 10:07:42 -04:00
2024-02-08 09:35:39 -05:00
2024-01-12 09:19:34 -05:00
2024-02-08 09:35:39 -05:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2024-04-23 11:16:40 +02:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2024-01-04 11:53:38 +02:00
2024-08-15 11:07:27 +02:00
2024-08-15 11:07:27 +02:00
2024-07-09 11:15:29 +02:00
2024-08-06 13:42:09 -04:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-07-22 12:59:00 +02:00
2024-02-08 09:35:39 -05:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2024-04-13 15:20:19 +08:00
2024-04-13 15:20:19 +08:00
2024-02-08 09:35:39 -05:00
2024-01-04 11:53:38 +02:00
2024-01-04 11:53:38 +02:00
2024-04-19 09:52:14 +02:00
2024-07-11 09:39:56 -04:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-01-04 11:53:38 +02:00
2024-01-04 11:53:38 +02:00
2024-05-22 17:47:01 -04:00
2024-05-22 17:47:01 -04:00