Skip to content

Commit

Permalink
A (hopefully temporary) workaround for a lockup on DragonFlyBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnoKing committed Feb 23, 2024
1 parent 1633d53 commit 04c5847
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/cmd/ksh93/sh/xec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 04c5847

Please sign in to comment.