antirez/redis — pull request #1896 by yossigo (2014-07-28 12:05:50+00:00)
Title: Fail SYNC if background save child aborted due to a signal.

Currently only exit code is tested, but slaves should get an error also when the child exits because of a signal (e.g. KILL by OOM killer, etc.).

I think not testing this may even result with corrupted replication:
1. BGSAVE child aborts, so there's no new rdb file.
2. The main process thinks the BGSAVE completed and sends an OLD RDB to the slave.
3. The slave loads an old RDB and proceeds to apply the slave output buffer content, but is actually missing everything that was written in-between.