diff --git a/Dockerfile b/Dockerfile index d56437a470709cc32dbfffc36527dd69d1aa6d3f..c9514199e411d52cc3b219d2fb3c6d9f6d6e8088 100644 --- a/Dockerfile +++ b/Dockerfile @@ -93,5 +93,5 @@ RUN for i in $(seq 16); do \ # Add go webserver COPY ./bin/web ${BIN}/goweb -CMD rm /dev/tty && exec tini ${BIN}/goweb +CMD rm /dev/tty && exec tini ${BIN}/goweb ${BIN}/maxima-optimised diff --git a/src/maxima_fork.c b/src/maxima_fork.c index 7eb457380438aa39295d500c02164d234498d958..6c4dd216ce5cd331af46c9887239007a281e26dc 100644 --- a/src/maxima_fork.c +++ b/src/maxima_fork.c @@ -29,7 +29,7 @@ char *fork_new_process() { // the server process doesn't accidentally write into // sbcl's buffer // the server should not write anything before it has read this - write(STDOUT_FILENO, "S", 1); + write(STDOUT_FILENO, "\x02", 1); // while the loop is running, the SIGCHLD handler // is deactivated so that children are automatically reaped