| 113 | } |
| 114 | |
| 115 | void PTYDevice::Watch(FilesystemWatcher& watcher, int events){ |
| 116 | if(device == PTYMasterDevice){ |
| 117 | pty->WatchMaster(watcher, events); |
| 118 | } else if(device == PTYSlaveDevice) { |
| 119 | pty->WatchSlave(watcher, events); |
| 120 | } else { |
| 121 | assert(!"PTYDevice::Watch: PTYDevice is designated neither slave nor master"); |
| 122 | } |
| 123 | } |
| 124 | |
| 125 | void PTYDevice::Unwatch(FilesystemWatcher& watcher){ |
| 126 | if(device == PTYMasterDevice){ |
nothing calls this directly
no test coverage detected