realm / realm-js

Realm is a mobile database: an alternative to SQLite & key-value stores
https://realm.io
Apache License 2.0
5.62k stars 558 forks source link

Avoid calling process.exit in sigint/exception handling #700

Closed kristiandupont closed 1 month ago

kristiandupont commented 7 years ago

See https://github.com/realm/realm-js/pull/675#issuecomment-263275285 -- it shouldn't be reverted but we should figure out how to let users attach custom handlers. Perhaps through the use of eventEmitter.once.

sorenvind commented 7 years ago

Just a small remark: It's important that realm-js either does everything internally or provides a handler that downstream users can call in their handlers. I.e. the user should not be required to pass a handler that realm-js then calls.