Don't leak a file descriptor when ejecting a CDROM.
Submitted by: Ronald Klop, trhodes Note to self: don't do commits while half-asleep
This commit is contained in:
parent
bed992dc26
commit
207ec3a836
@ -239,5 +239,6 @@ mediaEjectCDROM(Device *dev)
|
||||
else {
|
||||
ioctl(fd, CDIOCALLOW);
|
||||
ioctl(fd, CDIOCEJECT);
|
||||
close(fd);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user