From 2f66635635c12ee0246a5c4f771772ed2b71bec6 Mon Sep 17 00:00:00 2001 From: Sven Eden Date: Mon, 14 Aug 2017 09:16:15 +0200 Subject: Prep v235: Apply upstream fixes (3/10) [src/basic] --- src/basic/virt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/basic/virt.c') diff --git a/src/basic/virt.c b/src/basic/virt.c index a8f1652d2..36bfd2429 100644 --- a/src/basic/virt.c +++ b/src/basic/virt.c @@ -423,7 +423,7 @@ int detect_container(void) { goto finish; } - if (getpid() == 1) { + if (getpid_cached() == 1) { /* If we are PID 1 we can just check our own environment variable, and that's authoritative. */ e = getenv("container"); -- cgit v1.2.3