You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MB-42657: Don't call shutdown_server from signal handler
shutdown_server isn't signal-safe. Instead we should just
set the memcached_shutdown variable to true as that is signal
safe.
The clock callback happens every second and will poll the
shutdown variable.
Note that the sigterm and sigint handler isn't the "normal" way
to initiate shutdown, that happens from:
a) the parent process close stdin
b) someone sends shutdown request
Change-Id: I7cbbe0028643d6fdf747bdd710572d9279403bc3
Reviewed-on: http://review.couchbase.org/c/kv_engine/+/156471
Tested-by: Build Bot <[email protected]>
Reviewed-by: Dave Rigby <[email protected]>
0 commit comments