Browse files

made allow_data_loss_during_shutdown work in memcached-wrapper

ep-engine's allow_data_loss_during_shutdown feature detects parent's
death. But when run under memcached-wrapper memcached's parent is
shell which pipes memcached's output into tee. So this feature does
not work.

Simplest fix is to exec into memcached.

Change-Id: Ia9c4da9c4fbe43cc78aa0a5d0cda98cef2b3d569
Tested-by: Aliaksey Kandratsenka <>
Reviewed-by: Trond Norbye <>
  • Loading branch information...
1 parent ce9a2e8 commit 535dadc9ce8400096f2e24f2abfb4a2417d052f5 Aliaksey Kandratsenka committed with alk Jul 17, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1
@@ -2,4 +2,4 @@
-"$PREFIX/bin/memcached" -u `whoami` "$@" 2>&1 | tee -a "$PREFIX"/../memcached.$BASHPID.log
+exec "$PREFIX/bin/memcached" -u `whoami` "$@"

0 comments on commit 535dadc

Please sign in to comment.