os.dup()-then-close() can be replaced with detach()
1 file changed