projects
/
project
/
procd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
uxc: remove unused printf parameter
[project/procd.git]
/
container.h
diff --git
a/container.h
b/container.h
index 903e3e809627170b852c1f9fe541df3087005018..dede69632dfc7435d0c6430059499e01db3e96f4 100644
(file)
--- a/
container.h
+++ b/
container.h
@@
-21,7
+21,8
@@
static inline bool is_container() {
struct stat s;
int r = stat("/.dockerenv", &s);
- return !!getenv("container") || r == 0;
+ int pv_r = stat("/pantavisor", &s);
+ return !!getenv("container") || r == 0 || pv_r == 0;
}
#endif