if (server.ipfd > 0) close(server.ipfd);
if (server.sofd > 0) close(server.sofd);
retval = rdbSave(filename);
+ if (retval == REDIS_OK) {
+ size_t private_dirty = zmalloc_get_private_dirty();
+
+ if (private_dirty) {
+ redisLog(REDIS_NOTICE,
+ "RDB: %lu MB of memory used by copy-on-write",
+ private_dirty/(1024*1024));
+ }
+ }
exitFromChild((retval == REDIS_OK) ? 0 : 1);
} else {
/* Parent */