1. 20 Apr, 2018 1 commit
    • lxc/tools/lxc_monitor: include missing <stddef.h> · 77d40753
      Thomas Petazzoni authored
      lxc_monitor.c uses offsetof(), so it should include
      <stddef.h>. Otherwise the build fails with the musl C library:
      
      tools/lxc_monitor.c: In function ‘lxc_abstract_unix_connect’:
      tools/lxc_monitor.c:324:9: warning: implicit declaration of function ‘offsetof’ [-Wimplicit-function-declaration]
               offsetof(struct sockaddr_un, sun_path) + len + 1);
               ^~~~~~~~
      tools/lxc_monitor.c:324:18: error: expected expression before ‘struct’
               offsetof(struct sockaddr_un, sun_path) + len + 1);
                        ^~~~~~
      Signed-off-by: 's avatarThomas Petazzoni <thomas.petazzoni@bootlin.com>
  2. 19 Apr, 2018 1 commit
  3. 18 Apr, 2018 4 commits
  4. 15 Apr, 2018 3 commits
  5. 13 Apr, 2018 6 commits
  6. 12 Apr, 2018 3 commits
  7. 11 Apr, 2018 3 commits
  8. 10 Apr, 2018 2 commits
  9. 09 Apr, 2018 7 commits
  10. 07 Apr, 2018 1 commit
  11. 06 Apr, 2018 4 commits
  12. 05 Apr, 2018 1 commit
  13. 04 Apr, 2018 1 commit
    • fix signal sending in lxc.init · 9cb94384
      Tycho Andersen authored
      The problem here is that these two clauses were ordered backwards: we first
      check if the signal came from not the init pid, and if it did, then we give
      a notice and return. The comment notes that this is intended to protect
      against SIGCHLD, but we don't in fact know if the signal is a SIGCHLD yet,
      because that's tested in the next hunk.
      
      The symptom is that if I e.g. send SIGTERM from the outside world to the
      container init, it ignores it and gives this notice. If we re-order these
      clauses, it forwards non SIGCHLD signals, and ignores SIGCHLD signals from
      things that aren't the real container process.
      Signed-off-by: 's avatarTycho Andersen <tycho@tycho.ws>
  14. 03 Apr, 2018 2 commits
  15. 02 Apr, 2018 1 commit