Attach stdin.