use enum retired_fd instead of -1
Merge pull request #1145 from pijyoi/master

use enum retired_fd instead of -1