@@ -20,7 +20,7 @@ use crate::{fmt, mem, sys};
20
20
21
21
cfg_if:: cfg_if! {
22
22
// This workaround is only needed for QNX 7.0 and 7.1. The bug should have been fixed in 8.0
23
- if #[ cfg( any( target_env = "nto70" , target_env = "nto71" ) ) ] {
23
+ if #[ cfg( any( target_env = "nto70" , target_env = "nto71" , target_env = "nto71_iosock" ) ) ] {
24
24
use crate :: thread;
25
25
use libc:: { c_char, posix_spawn_file_actions_t, posix_spawnattr_t} ;
26
26
use crate :: time:: Duration ;
@@ -191,7 +191,8 @@ impl Command {
191
191
target_os = "watchos" ,
192
192
target_os = "tvos" ,
193
193
target_env = "nto70" ,
194
- target_env = "nto71"
194
+ target_env = "nto71" ,
195
+ target_env = "nto71_iosock" ,
195
196
) ) ) ]
196
197
unsafe fn do_fork ( & mut self ) -> Result < pid_t , io:: Error > {
197
198
cvt ( libc:: fork ( ) )
@@ -202,7 +203,7 @@ impl Command {
202
203
// Documentation says "... or try calling fork() again". This is what we do here.
203
204
// See also https://www.qnx.com/developers/docs/7.1/#com.qnx.doc.neutrino.lib_ref/topic/f/fork.html
204
205
// This workaround is only needed for QNX 7.0 and 7.1. The bug should have been fixed in 8.0
205
- #[ cfg( any( target_env = "nto70" , target_env = "nto71" ) ) ]
206
+ #[ cfg( any( target_env = "nto70" , target_env = "nto71" , target_env = "nto71_iosock" ) ) ]
206
207
unsafe fn do_fork ( & mut self ) -> Result < pid_t , io:: Error > {
207
208
use crate :: sys:: os:: errno;
208
209
0 commit comments