diff --git a/src/cmd/ksh93/sh/xec.c b/src/cmd/ksh93/sh/xec.c index be2b367ef248..2ad7dab2941f 100644 --- a/src/cmd/ksh93/sh/xec.c +++ b/src/cmd/ksh93/sh/xec.c @@ -1461,7 +1461,16 @@ int sh_exec(const Shnode_t *t, int flags) fifo_save_ppid = sh.current_pid; #endif #if SHOPT_SPAWN +#if defined(__DragonFly__) + /* + * For some reason spawnveg locks up after tcsetpgrp on DragonFly BSD + * in the path.sh -ic tests, at the same spot AIX hangs. + * TODO: Actually fix the hang. + */ + if(com && !job.jobcontrol) +#else if(com) +#endif { parent = sh_ntfork(t,com,&jobid,topfd); if(parent<0)