cleanup pthreads

This commit is contained in:
dignifiedquire
2019-05-02 00:00:54 +02:00
parent 3308767b24
commit ba7d690617
3 changed files with 1 additions and 33 deletions

View File

@@ -281,7 +281,6 @@ unsafe fn start_threads(
std::thread::JoinHandle<()>,
std::thread::JoinHandle<()>,
) {
println!("staring thread");
run_threads = 1;
let context = c.clone();
let h1 = std::thread::spawn(move || {
@@ -519,7 +518,6 @@ unsafe fn main_0(mut argc: libc::c_int, mut argv: *mut *mut libc::c_char) -> lib
break;
}
if !(*cmd.offset(0isize) as libc::c_int == 0i32) {
let ctx = ctx.clone();
let mut execute_result: *mut libc::c_char = dc_cmdline(ctx, &cmdline);
if !execute_result.is_null() {
printf(