Stefan Schuermans commited on 2011-12-11 21:38:16
Showing 1 changed files, with 1 additions and 1 deletions.
| ... | ... |
@@ -24,7 +24,7 @@ namespace Blinker {
|
| 24 | 24 |
Device::Device(const std::string &path) |
| 25 | 25 |
{
|
| 26 | 26 |
// open device |
| 27 |
- m_fd = open(path.c_str(), O_CLOEXEC | O_NOCTTY | O_NONBLOCK); |
|
| 27 |
+ m_fd = open(path.c_str(), O_RDWR | O_CLOEXEC | O_NOCTTY | O_NONBLOCK); |
|
| 28 | 28 |
} |
| 29 | 29 |
|
| 30 | 30 |
/// destructor |
| 31 | 31 |