rynop / dynamodb-local

A wrapper for AWS DynamoDB Local, intended for use in testcases
MIT License
53 stars 30 forks source link

Kill child on process.exit() #15

Closed Enselic closed 6 years ago

Enselic commented 6 years ago

Otherwise the java process stays around after running a node program like this:

  const DynamoDbLocal = require('dynamodb-local');
  DynamoDbLocal.launch(8001, null, ['-sharedDb', '-inMemory'])
    .then(function() {
      process.exit(0);
    })

which happens in the wild. For example, some test frameworks behaves like this when in so called watch mode and you type 'q' as in 'quit'.

doapp-ryanp commented 6 years ago

Thanks @Enselic