diff options
author | Sven Eden <yamakuzure@gmx.net> | 2017-08-14 09:16:15 +0200 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-08-14 09:20:53 +0200 |
commit | 2f66635635c12ee0246a5c4f771772ed2b71bec6 (patch) | |
tree | 8fdaaf3a21ce5f39638396222bbf4dedab7ba4c3 /src/basic/virt.c | |
parent | c59be53b8741357a7a499785bc67204a51ddde77 (diff) |
Prep v235: Apply upstream fixes (3/10) [src/basic]
Diffstat (limited to 'src/basic/virt.c')
-rw-r--r-- | src/basic/virt.c | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |