Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-399

Process cleanup improvement

      The current command:
      https://github.com/mongodb/mongo-cxx-driver/blob/legacy/.mci.yml#L213

      trap '${killall_mci|mongo-orchestration stop || pkill -9 mongod || pkill -9 mongos || true}' EXIT
      

      Should probably be replaced with something like:

      trap 'set +o errexit; mongo-orchestration stop ; ${mci_killall|pkill -9 mongod ; pkill -9 mongos}' EXIT
      

      The server equivalent is here if you want to copy its logic:
      https://github.com/10gen/mci/blob/3423cb0dfb392bceac4e9eecc163e6b9a4d02fb0/config_prod/project/mongodb-mongo-master.yml#L198

      And the windows override of mci_killall:
      https://github.com/10gen/mci/blob/3423cb0dfb392bceac4e9eecc163e6b9a4d02fb0/config_prod/distros/windows64.yml#L22

            Assignee:
            spencer.jackson@mongodb.com Spencer Jackson
            Reporter:
            ernie.hershey@mongodb.com Ernie Hershey (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: