{"record":{"id":"67a70af7cdb91826","repo":"zellij-org/zellij","slug":"could-not-find-raw-file-descriptor","errorCode":null,"errorMessage":"could not find raw file descriptor","messagePattern":"could not find raw file descriptor","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"zellij-server/src/os_input_output_unix.rs","lineNumber":397,"sourceCode":"                    .non_fatal();\n            },\n        }\n        Ok(())\n    }\n\n    pub fn write_to_tty_stdin(&self, terminal_id: u32, buf: &[u8]) -> Result<usize> {\n        let err_context = || format!(\"failed to write to stdin of TTY ID {}\", terminal_id);\n\n        let fd = match self\n            .terminal_id_to_raw_fd\n            .lock()\n            .to_anyhow()\n            .with_context(err_context)?\n            .get(&terminal_id)\n        {\n            Some(Some(fd)) => *fd,\n            _ => {\n                return Err(anyhow!(\"could not find raw file descriptor\")).with_context(err_context)\n            },\n        };\n\n        try_write_to_fd(fd, buf).with_context(err_context)\n    }\n\n    pub fn tcdrain(&self, terminal_id: u32) -> Result<()> {\n        let err_context = || format!(\"failed to tcdrain to TTY ID {}\", terminal_id);\n\n        match self\n            .terminal_id_to_raw_fd\n            .lock()\n            .to_anyhow()\n            .with_context(err_context)?\n            .get(&terminal_id)\n        {\n            Some(Some(fd)) => {\n                termios::tcdrain(unsafe { BorrowedFd::borrow_raw(*fd) }).with_context(err_context)","sourceCodeStart":379,"sourceCodeEnd":415,"githubUrl":"https://github.com/zellij-org/zellij/blob/98a0837077492d53dd252ab30bc3e43e41e504f4/zellij-server/src/os_input_output_unix.rs#L379-L415","documentation":"Error \"could not find raw file descriptor\" thrown in zellij-org/zellij.","triggerScenarios":"Thrown at zellij-server/src/os_input_output_unix.rs:397 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"98a0837077492d53dd252ab30bc3e43e41e504f4","analyzedAt":"2026-08-16T13:02:01.396Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}