| 252 | } |
| 253 | |
| 254 | void PTY::WatchSlave(FilesystemWatcher& watcher, int events){ |
| 255 | if(!(events & (POLLIN))){ // We don't really block on writes and nothing else applies except POLLIN |
| 256 | watcher.Signal(); |
| 257 | return; |
| 258 | } else if(slaveFile.CanRead()){ |
| 259 | watcher.Signal(); |
| 260 | return; |
| 261 | } |
| 262 | |
| 263 | watchingSlave.add_back(&watcher); |
| 264 | } |
| 265 | |
| 266 | void PTY::UnwatchMaster(FilesystemWatcher& watcher){ |
| 267 | watchingMaster.remove(&watcher); |