Xu Shaohua
Xu Shaohua
What system environment this code is running on? Linux ? or BSD?
Well, I read the source code and find out that it is a known issue. Type of argc and env are not defined properly. Both of them shall be declared...
Another implementation of cstr is being rewritten. It will be used to store args and env.
Today I've spent several hours to migrate crates which rustdesk depends on to riscv64 architecture. And now cargo build successfully. But neither sciter-sdk nor flutter supports riscv64 currently. It's a...
signal handler related issues are solved in nc `v0.9.1`. And the code snippet needs to update like this: ```rust use std::{mem::size_of, thread::sleep, time::Duration}; fn handle_sigterm(sig: i32) { assert_eq!(sig, nc::SIGINT); println!("received...
Closing now
@joseluis Hello. A temporary demo app has been uploaded. The `sigaction-demo/src/main.rs` file is copied from `nc/examples/sigaction.rs`. But it works as expected. Anything missing ?
@joseluis Initialize sa manually does not fail on my machine: ```rust let sa = nc::sigaction_t { sa_handler: signal_handler as nc::sighandler_t, #[cfg(nc_has_sa_restorer)] sa_flags: nc::SA_RESTART | nc::SA_RESTORER, #[cfg(not(nc_has_sa_restorer))] sa_flags: nc::SA_RESTART, #[cfg(nc_has_sa_restorer)] sa_restorer:...
Please rerun the demo app with GDB and paste any error message here.