Skip to content

Commit

Permalink
tunspace: avoid leaking an open process
Browse files Browse the repository at this point in the history
This particular command should always exit quickly, but you never know.
  • Loading branch information
pktpls committed Oct 25, 2024
1 parent 775e450 commit 19995f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/tunspace/tunspace.uc
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ function shell_command(cmd) {
function create_namespace(st, nsname) {
let p = fs.popen("ip -j netns list-id", "r");
let out = p.read("all");
p.close();
debug("ip -j netns list-id (error="+p.error()+")");
if (out == null) {
return false;
Expand Down

0 comments on commit 19995f3

Please sign in to comment.