Skip to content

Commit

Permalink
kernel: avoid using global buffers in FuncExecuteProcess
Browse files Browse the repository at this point in the history
This would cause problems if two HPC-GAP threads called this function at the
same time. Of course that might also cause all kinds of other problems...
but at least one obvious one is gone now.
  • Loading branch information
fingolfin authored and ChrisJefferson committed Mar 25, 2019
1 parent cd3cc79 commit 49bec58
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/streams.c
Original file line number Diff line number Diff line change
Expand Up @@ -1776,12 +1776,12 @@ static Obj FuncUNIXSelect(Obj self,
**
*F FuncExecuteProcess( <self>, <dir>, <prg>, <in>, <out>, <args> ) process
*/
static Obj ExecArgs [ 1024 ];
static Char * ExecCArgs [ 1024 ];

static Obj
FuncExecuteProcess(Obj self, Obj dir, Obj prg, Obj in, Obj out, Obj args)
{
Obj ExecArgs[1024];
Char * ExecCArgs[1024];

Obj tmp;
Int res;
Int i;
Expand Down

0 comments on commit 49bec58

Please sign in to comment.