mirror of
https://github.com/uqbar-dao/nectar.git
synced 2024-12-23 08:32:23 +03:00
comment out debugging prints
This commit is contained in:
parent
47675cfbf4
commit
cb9c6b1703
@ -1499,15 +1499,21 @@ async fn handle_kernel_request(
|
||||
// brutal and savage killing: aborting the task.
|
||||
// do not do this to a process if you don't want to risk
|
||||
// dropped messages / un-replied-to-requests
|
||||
println!("kernel: killing process {:?}\r", process_id);
|
||||
send_to_terminal
|
||||
.send(t::Printout {
|
||||
verbosity: 1,
|
||||
content: format!("kernel: killing process {:?}", process_id),
|
||||
})
|
||||
.await
|
||||
.unwrap();
|
||||
let _ = senders.remove(&process_id);
|
||||
let process_handle = match process_handles.remove(&process_id) {
|
||||
Some(ph) => ph,
|
||||
None => {
|
||||
send_to_terminal
|
||||
.send(t::Printout {
|
||||
verbosity: 0,
|
||||
content: format!("kernel: no such process {:?} to Stop", process_id),
|
||||
verbosity: 1,
|
||||
content: format!("kernel: no such process {:?} to kill", process_id),
|
||||
})
|
||||
.await
|
||||
.unwrap();
|
||||
|
1
src/register
Submodule
1
src/register
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 3f9cba362091ef0d6540e993d760fc89e312e47d
|
@ -593,7 +593,7 @@ pub async fn terminal(
|
||||
command_history.add(command.clone());
|
||||
cursor_col = prompt_len.try_into().unwrap();
|
||||
line_col = prompt_len;
|
||||
println!("terminal: sending\r");
|
||||
// println!("terminal: sending\r");
|
||||
let _err = event_loop.send(
|
||||
KernelMessage {
|
||||
id: rand::random(),
|
||||
|
@ -326,14 +326,14 @@ pub async fn vfs(
|
||||
}
|
||||
match drive_to_queue.remove(&request.drive) {
|
||||
Some(queue) => {
|
||||
println!("vfs: q\r"); // magic print that makes kv work
|
||||
// println!("vfs: q\r"); // magic print that makes kv work
|
||||
let mut queue_lock = queue.lock().await;
|
||||
queue_lock.push_back((km, response_receiver));
|
||||
drive_to_queue.insert(request.drive, Arc::clone(&queue));
|
||||
continue;
|
||||
},
|
||||
None => {
|
||||
println!("vfs: no q\r"); // magic print that makes kv work
|
||||
// println!("vfs: no q\r"); // magic print that makes kv work
|
||||
let mut queue = VecDeque::new();
|
||||
queue.push_back((km, response_receiver));
|
||||
let queue: RequestQueue = Arc::new(Mutex::new(queue));
|
||||
|
Loading…
Reference in New Issue
Block a user