From 04c58474946453aac33ef2458eb24721affb93df Mon Sep 17 00:00:00 2001 From: Johnothan King Date: Fri, 23 Feb 2024 06:51:12 -0800 Subject: [PATCH] A (hopefully temporary) workaround for a lockup on DragonFlyBSD --- src/cmd/ksh93/sh/xec.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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)