Merge "sdm: Use Sys wrapper for dup() call"