We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8af029 commit a63fac8Copy full SHA for a63fac8
kernel/src/filesystem/procfs/mod.rs
@@ -200,6 +200,14 @@ impl ProcFSInode {
200
// fdsize
201
pdata.append(&mut format!("\nFDSize:\t{}", pcb.fd_table().read().fd_open_count()).into());
202
203
+ // tty
204
+ let name = if let Some(tty) = pcb.sig_info_irqsave().tty() {
205
+ tty.core().name().clone()
206
+ } else {
207
+ "none".to_string()
208
+ };
209
+ pdata.append(&mut format!("\nTty:\t{}", name).as_bytes().to_owned());
210
+
211
// kthread
212
pdata.append(&mut format!("\nKthread:\t{}", pcb.is_kthread() as usize).into());
213
0 commit comments