| 240 | } |
| 241 | |
| 242 | void PTY::WatchMaster(FilesystemWatcher& watcher, int events){ |
| 243 | if(!(events & (POLLIN))){ // We don't really block on writes and nothing else applies except POLLIN |
| 244 | watcher.Signal(); |
| 245 | return; |
| 246 | } else if(masterFile.CanRead()){ |
| 247 | watcher.Signal(); |
| 248 | return; |
| 249 | } |
| 250 | |
| 251 | watchingMaster.add_back(&watcher); |
| 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 |