Browse Source

init: Reap tested subdaemon processes to release OS resources

The processes that were used to test the subdaemon versions were not
reaped correctly keeping some resources bound.

Signed-off-by: Christian Decker <decker.christian@gmail.com>
pr-2218
Christian Decker 6 years ago
committed by Rusty Russell
parent
commit
36e060aa60
  1. 4
      lightningd/lightningd.c

4
lightningd/lightningd.c

@ -293,6 +293,10 @@ void test_subdaemons(const struct lightningd *ld)
|| verstring[strlen(version())] != '\n')
errx(1, "%s: bad version '%s'",
subdaemons[i], verstring);
/*~ finally reap the child process, freeing all OS
* resources that go with it */
waitpid(pid, NULL, 0);
}
}

Loading…
Cancel
Save