Skip to content

Commit 31623a1

Browse files
author
B I Mohammed Abbas
committed
Process vxworks: Remove thread::minstack() and use libc::PTHREAD_STACK_MIN for threads initial stack size
1 parent 265b1ea commit 31623a1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

library/std/src/sys/pal/unix/process/process_vxworks.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ use crate::num::NonZero;
44
use crate::sys;
55
use crate::sys::cvt;
66
use crate::sys::process::process_common::*;
7-
use crate::sys_common::thread;
87
use libc::RTP_ID;
98
use libc::{self, c_char, c_int};
109

@@ -68,7 +67,7 @@ impl Command {
6867
.as_ref()
6968
.map(|c| c.as_ptr())
7069
.unwrap_or_else(|| *sys::os::environ() as *const _);
71-
let stack_size = thread::min_stack();
70+
let stack_size = libc::PTHREAD_STACK_MIN;
7271

7372
// ensure that access to the environment is synchronized
7473
let _lock = sys::os::env_read_lock();

0 commit comments

Comments
 (0)