| 228 | } |
| 229 | |
| 230 | size_t PTY::Slave_Write(char* buffer, size_t count){ |
| 231 | size_t written = master.Write(buffer, count); |
| 232 | |
| 233 | if(master.bufferPos && watchingMaster.get_length()){ |
| 234 | while(watchingMaster.get_length()){ |
| 235 | watchingMaster.remove_at(0)->Signal(); // Signal all watching |
| 236 | } |
| 237 | } |
| 238 | |
| 239 | return written; |
| 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 |
no test coverage detected