etherpad-lite/src/node/hooks/express
muxator d5d428c4ee windows: allow graceful shutdown on Windows, too
Until Etherpad 1.7.5, process.on('SIGTERM') and process.on('SIGINT') were not
hooked up under Windows, because old nodejs versions did not support them.
This excluded the possibility of doing a graceful shutdown of the database
connection under that platform.

According to nodejs 6.x documentation, it is now safe to do so. This allows to
gracefully close the DB connection when hitting CTRL+C under Windows, for
example.

Source: https://nodejs.org/docs/latest-v6.x/api/process.html#process_signal_events

  - SIGTERM is not supported on Windows, it can be listened on.
  - SIGINT from the terminal is supported on all platforms, and can usually be
    generated with <Ctrl>+C (though this may be configurable). It is not
    generated when terminal raw mode is enabled.
2019-02-16 00:14:39 +01:00
..
admin.js redirect /admin properly (fix #3114) 2017-01-06 18:19:38 +01:00
adminplugins.js Log version number and git-sha on server start 2015-04-11 00:13:04 +02:00
adminsettings.js adminsettings: early return, no functional changes. 2018-08-29 01:34:45 +02:00
apicalls.js Fix typo in apicalls.js which prevents from importing isValidJSONPName. 2018-04-09 20:56:29 +02:00
errorhandling.js windows: allow graceful shutdown on Windows, too 2019-02-16 00:14:39 +01:00
importexport.js check pad exists before importing / exporting 2018-04-04 21:48:32 +01:00
isValidJSONPName.js Added a jsonp var checker 2018-03-23 11:17:39 +00:00
padreadonly.js Remove the noDocType argument, which was only ever passed as false. 2016-09-08 09:41:23 -07:00
padurlsanitize.js padurlsanitize: early return, no functional changes 2018-08-29 01:38:55 +02:00
socketio.js update for express 4.x 2015-04-08 23:12:11 -05:00
specialpages.js skins: finalize support for multiple skins 2018-08-26 21:17:04 +02:00
static.js Fix misparse of port when binding Unix socket 2018-08-10 01:57:30 +02:00
swagger.js Adding api call for appending a chat message. 2015-02-09 00:18:12 -05:00
tests.js clearer comments about the path handling behavior 2015-04-10 20:19:26 -05:00
webaccess.js deprecations: get rid of DEP0005 about Buffer() 2018-08-14 19:45:03 +02:00