Fix dangling file descriptors (fixes #1152)
Fix dangling file descriptors (fixes #1152)

ascent12/sway,johalun/sway,taiyu-len/sway,ascent12/sway,taiyu-len/sway,sleep-walker/sway,ptMuta/sway,1ace/sway,taiyu-len/sway,SirCmpwn/sway,4e554c4c/sway,ascent12/sway,4e554c4c/sway,1ace/sway,1ace/sway,sleep-walker/sway