Michael Crosby
8ee0f56810
Add init process for zombie fighting
...
This adds a small C binary for fighting zombies. It is mounted under
`/dev/init` and is prepended to the args specified by the user. You
enable it via a daemon flag, `dockerd --init`, as it is disable by
default for backwards compat.
You can also override the daemon option or specify this on a per
container basis with `docker run --init=true|false`.
You can test this by running a process like this as the pid 1 in a
container and see the extra zombie that appears in the container as it
is running.
```c
int main(int argc, char ** argv) {
pid_t pid = fork();
if (pid == 0) {
pid = fork();
if (pid == 0) {
exit(0);
}
sleep(3);
exit(0);
}
printf("got pid %d and exited\n", pid);
sleep(20);
}
```
Signed-off-by: Michael Crosby <crosbymichael@gmail.com >
Upstream-commit: ee3ac3aa66bfb27b7c21dfb253fdaa113baedd4e
Component: engine
2016-09-19 17:33:50 -07:00
..
2016-03-18 13:38:32 -07:00
2016-09-17 16:00:38 +02:00
2016-09-12 07:36:52 +00:00
2016-09-12 09:20:27 -07:00
2016-09-17 16:16:50 -07:00
2016-09-16 10:22:09 -07:00
2016-09-13 14:21:58 -07:00
2016-03-18 13:38:32 -07:00
2016-03-18 13:38:32 -07:00
2016-05-06 16:08:53 -07:00
2016-04-06 12:12:20 -07:00
2016-09-07 11:05:58 -07:00
2016-09-16 12:27:13 -04:00
2016-09-07 11:05:58 -07:00
2016-05-24 21:31:15 +02:00
2016-09-08 21:31:52 -04:00
2016-09-07 11:05:58 -07:00
2016-08-25 13:09:03 -04:00
2016-08-25 13:09:03 -04:00
2016-08-25 13:09:03 -04:00
2016-08-25 13:09:04 -04:00
2016-09-19 17:33:50 -07:00
2016-09-07 11:05:58 -07:00
2016-08-25 13:09:04 -04:00
2016-09-07 11:05:58 -07:00
2016-09-07 21:20:41 -07:00
2016-09-07 11:05:58 -07:00
2016-09-16 12:27:13 -04:00
2016-09-16 12:27:13 -04:00
2016-09-13 09:55:35 -04:00
2016-09-13 09:55:35 -04:00
2016-09-16 12:27:13 -04:00
2016-09-07 11:05:58 -07:00
2016-03-30 17:25:49 -07:00
2016-03-30 17:25:49 -07:00
2016-09-07 11:05:58 -07:00
2016-09-07 11:05:58 -07:00
2016-09-07 11:05:58 -07:00
2016-09-07 11:05:58 -07:00
2016-09-09 13:23:41 -04:00
2016-05-23 16:37:12 -07:00
2016-09-17 09:31:24 -07:00
2016-09-13 18:22:16 -07:00
2016-07-21 20:04:47 -07:00
2016-07-21 20:04:47 -07:00
2016-07-21 20:04:47 -07:00
2016-09-07 11:05:58 -07:00
2016-09-16 12:27:13 -04:00
2016-09-01 01:07:05 +08:00
2016-09-01 01:07:05 +08:00
2016-09-16 12:27:13 -04:00
2016-09-07 11:05:58 -07:00
2016-09-07 11:05:58 -07:00
2016-03-18 13:38:32 -07:00
2016-05-23 16:37:12 -07:00
2016-03-30 12:59:50 -07:00
2016-09-16 12:27:13 -04:00
2016-09-07 11:05:58 -07:00
2016-09-15 13:31:11 +02:00
2016-09-18 09:40:16 -04:00
2016-05-21 22:36:11 +02:00
2016-09-15 18:08:19 -07:00
2016-09-15 18:08:19 -07:00
2016-09-07 11:05:58 -07:00
2016-09-07 11:05:58 -07:00
2016-09-15 18:08:19 -07:00
2016-09-15 18:08:19 -07:00
2016-09-15 18:08:19 -07:00
2016-09-07 11:05:58 -07:00
2016-09-07 11:05:58 -07:00
2016-09-07 11:05:58 -07:00
2016-09-13 09:55:35 -04:00
2016-09-13 09:55:35 -04:00
2016-09-08 13:21:26 -04:00
2016-06-27 10:23:37 -07:00
2016-06-27 10:23:37 -07:00
2016-08-01 01:00:38 +08:00
2016-09-07 11:05:58 -07:00
2016-05-23 16:37:12 -07:00
2016-09-07 21:20:41 -07:00
2016-08-17 22:26:24 +02:00
2016-09-07 11:05:58 -07:00
2016-09-07 11:05:58 -07:00
2016-04-06 14:03:05 -07:00
2016-05-23 16:37:12 -07:00
2016-09-08 21:31:52 -04:00
2016-09-16 16:05:55 -07:00
2016-09-13 09:55:35 -04:00
2016-08-22 13:41:17 -07:00
2016-09-16 12:27:13 -04:00
2016-09-19 17:33:50 -07:00
2016-09-07 23:15:22 -07:00
2016-09-19 22:52:16 +02:00
2016-03-18 13:38:32 -07:00
2016-06-27 19:58:05 -07:00
2016-03-18 13:38:32 -07:00
2016-09-08 21:31:52 -04:00
2016-09-07 11:05:58 -07:00
2016-09-07 11:05:58 -07:00
2016-08-17 09:38:34 -07:00
2016-09-01 11:53:07 +02:00
2016-07-08 17:26:42 -07:00
2016-08-26 15:33:26 +02:00
2016-09-16 16:05:55 -07:00
2016-09-16 12:27:13 -04:00
2016-05-23 16:37:12 -07:00
2016-09-16 11:56:15 -07:00
2016-09-16 11:56:15 -07:00
2016-09-16 11:56:15 -07:00
2016-09-16 11:56:15 -07:00
2016-09-16 11:56:15 -07:00
2016-09-16 11:56:15 -07:00
2016-09-16 12:27:13 -04:00
2016-07-08 05:58:11 +00:00
2016-09-07 11:05:58 -07:00
2016-09-07 16:29:02 -07:00
2016-08-29 10:16:18 +08:00
2016-09-07 11:05:58 -07:00
2016-09-07 11:05:58 -07:00
2016-09-07 11:05:58 -07:00
2016-09-07 11:05:58 -07:00
2016-09-13 09:55:35 -04:00
2016-09-13 09:55:35 -04:00
2016-09-17 16:01:02 +02:00
2016-06-14 16:49:04 -07:00