Skip to content

Commit d7b6094

Browse files
committed
spawn/ChildOptions: use env in GetHash()
This is what beng-proxy already does.
1 parent a5d63ab commit d7b6094

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/spawn/ChildOptions.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ ChildOptions::GetHash() const noexcept
9999
if (ns.mount.home != nullptr)
100100
hash = djb_hash_string(ns.mount.home, hash);
101101

102+
for (const char *i : env)
103+
hash = djb_hash_string(i, hash);
104+
102105
return hash;
103106
}
104107

0 commit comments

Comments
 (0)