[Box Backup-commit] [boxbackup/boxbackup] e59262: ServerControl: add signal checks and wait() wrappe...

GitHub noreply at github.com
Sat Dec 8 22:35:01 GMT 2018

  Branch: refs/heads/s3_support
  Home:   https://github.com/boxbackup/boxbackup
  Commit: e59262c2e5b97e4877adfe627b3360cb13b66cf2
  Author: Chris Wilson <chris+github at qwirx.com>
  Date:   2018-12-08 (Sat, 08 Dec 2018)

  Changed paths:
    M lib/server/ServerControl.cpp
    M lib/server/ServerControl.h
    M test/bbackupd/testbbackupd.cpp

  Log Message:
  ServerControl: add signal checks and wait() wrapper

KillServer: add a parameter to allow the expected exit signal to be checked.
This allows us to determine if a process died for the wrong reason, e.g. if it
failed to catch SIGTERM, or was killed by SIGSEGV instead.

WaitForProcessExit: split out, to make it easier to clean up after forked
daemons, and check their exit status and signal.

test/bbackupd: use these to improve handling and failure mode checking of
forking daemon tests, reducing risk of hangs.

      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.

More information about the Boxbackup-commit mailing list