Nothing here is specific to Rust and applies to any terminal app in any language that spawns a child process.
Fixing Ctrl+C in Rust terminal apps: Child process management
11–20 of 62 posts
Re: Fixing Ctrl+C in Rust terminal apps: Child process management
#12Re: Fixing Ctrl+C in Rust terminal apps: Child process management
#13Fearless concurrency with Rust unless you are worried about lifecycle management, threads/co-operation and general ergonomics. Even modern c++ might be better at this (gasp!) with std::jthread
Re: Fixing Ctrl+C in Rust terminal apps: Child process management
#14This title was close to being a garden path sentence, but ultimately avoided it.
Re: Fixing Ctrl+C in Rust terminal apps: Child process management
#15Re: Fixing Ctrl+C in Rust terminal apps: Child process management
#16Fearless concurrency with Rust unless you are worried about lifecycle management, threads/co-operation and general ergonomics. Even modern c++ might be better at this (gasp!) with std::jthread
> Unlike non-scoped threads, scoped threads can borrow non-'static data, as the scope guarantees all threads will be joined at the end of the scope.
> All threads spawned within the scope that haven’t been manually joined will be automatically joined before this function returns.
Re: Fixing Ctrl+C in Rust terminal apps: Child process management
#17Nothing here is specific to Rust and applies to any terminal app in any language that spawns a child process.
Nothing, that is, except for the examples, the source code, the libraries, and the linked references. But nothing else.
Re: Fixing Ctrl+C in Rust terminal apps: Child process management
#18Fearless concurrency with Rust unless you are worried about lifecycle management, threads/co-operation and general ergonomics. Even modern c++ might be better at this (gasp!) with std::jthread
Re: Fixing Ctrl+C in Rust terminal apps: Child process management
#19Fearless concurrency with Rust unless you are worried about lifecycle management, threads/co-operation and general ergonomics. Even modern c++ might be better at this (gasp!) with std::jthread