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-09-12 12:55:26 -07:00
2016-09-07 16:29:02 -07:00
2016-09-08 11:16:27 -07:00
2016-07-28 20:14:14 -04:00
2016-09-12 12:45:08 -05:00
2016-09-07 21:20:41 -07:00
2016-09-07 21:20:41 -07:00
2016-09-07 17:30:35 -04:00
2016-06-13 22:16:18 -07:00
2016-09-07 11:05:58 -07:00
2016-08-30 08:41:17 -07:00
2016-09-16 11:56:15 -07:00
2016-06-07 18:45:27 -07:00
2016-02-24 11:00:47 -08:00
2016-08-30 15:03:18 -07:00
2016-06-07 18:45:27 -07:00
2016-09-07 11:05:58 -07:00
2016-07-11 14:52:27 +08:00
2016-09-07 11:05:58 -07:00
2016-06-07 18:45:27 -07:00
2016-09-07 11:05:58 -07:00
2016-06-07 18:45:27 -07:00
2016-09-07 11:05:58 -07:00
2016-09-16 11:56:15 -07:00
2016-09-07 11:05:58 -07:00
2016-09-07 11:05:58 -07:00
2016-08-23 15:12:36 -04:00
2016-02-03 10:43:01 -08:00
2016-09-07 11:05:58 -07:00
2016-09-07 11:05:58 -07:00
2016-08-29 15:57:27 -07:00
2016-08-23 15:11:46 -04:00
2016-08-23 21:08:23 -07:00
2016-09-14 16:56:35 -07:00
2016-08-23 15:11:46 -04:00
2016-09-13 16:20:10 -04:00
2016-08-30 09:48:18 -07:00
2016-02-25 14:12:17 -05:00
2016-08-30 14:32:10 -07:00
2016-08-30 14:32:10 -07:00
2016-08-30 14:32:10 -07:00
2016-02-18 14:44:13 -08:00
2016-08-30 14:38:19 -07:00
2016-08-25 14:20:06 -07:00
2016-09-08 17:47:43 -07:00
2016-08-12 12:33:42 +01:00
2016-09-19 17:33:50 -07:00
2016-08-30 22:24:52 +02:00
2016-08-30 15:03:18 -07:00
2016-09-12 09:20:27 -07:00
2016-02-09 09:31:09 +02:00
2016-08-03 12:22:07 -04:00
2016-09-07 11:05:58 -07:00
2016-09-07 11:05:58 -07:00
2016-09-08 21:31:52 -04:00
2016-08-30 09:31:33 -07:00
2016-08-30 15:20:55 -07:00
2016-09-01 16:28:22 -07:00
2016-09-16 10:05:21 -07:00
2016-06-14 12:23:45 -07:00
2016-09-07 11:05:58 -07:00
2016-02-24 13:33:25 -08:00
2016-08-23 15:11:46 -04:00
2016-03-16 09:00:39 +01:00
2016-09-07 09:45:42 +02:00
2016-03-21 11:05:58 -04:00
2016-05-06 20:42:20 -04:00
2016-06-02 17:17:22 +08:00
2016-09-14 13:14:30 -04:00
2016-05-10 11:28:00 -07:00
2016-04-14 16:22:16 -07:00
2016-09-15 13:50:57 -07:00
2016-02-11 22:13:47 +00:00
2016-02-25 14:12:17 -05:00
2016-09-07 16:29:02 -07:00
2016-09-07 09:45:42 +02:00
2016-09-09 11:40:34 -07:00
2016-03-21 10:56:49 -07:00
2016-08-10 08:36:09 +08:00
2016-08-08 11:40:20 +08:00
2016-08-25 16:29:08 -07:00
2016-08-09 09:42:23 +08:00
2016-02-03 10:56:19 -08:00
2016-09-07 17:30:35 -04:00
2016-09-19 17:33:50 -07:00
2016-09-19 17:33:50 -07:00
2016-08-10 08:36:09 +08:00
2016-08-10 08:36:09 +08:00
2016-06-03 19:50:01 +02:00
2016-09-07 11:05:58 -07:00
2016-09-07 11:05:58 -07:00
2016-09-07 16:29:02 -07:00
2016-07-28 20:14:14 -04:00
2016-08-26 00:16:49 +08:00
2016-04-13 16:36:34 -04:00
2016-04-10 15:39:28 +08:00
2016-09-13 14:21:58 -07:00
2016-06-01 09:44:25 -07:00
2016-09-07 16:29:02 -07:00
2016-08-16 15:36:13 +08:00
2016-09-07 11:05:58 -07:00
2016-09-05 13:02:13 +03:00
2016-03-01 11:52:32 -08:00
2016-08-25 14:20:06 -07:00
2016-03-25 10:02:52 -04:00
2016-09-07 16:29:02 -07:00
2016-06-01 22:25:17 +08:00
2016-08-23 15:12:36 -04:00
2016-07-28 20:14:14 -04:00
2016-08-23 09:01:25 +08:00
2016-09-08 11:16:27 -07:00
2016-09-12 07:36:52 +00:00
2016-09-12 12:55:26 -07:00
2016-09-07 17:30:35 -04:00
2016-03-02 14:22:51 -08:00
2016-03-02 14:22:51 -08:00
2016-08-10 08:36:09 +08:00
2016-07-29 12:16:03 -04:00
2016-09-09 13:23:41 -04:00
2016-09-07 16:29:02 -07:00
2016-09-07 16:29:02 -07:00
2016-09-07 16:29:02 -07:00
2016-09-02 19:07:54 -07:00
2016-08-23 15:11:46 -04:00