diff --git a/src/Rserv.c b/src/Rserv.c index 5f6ad36..336d2b6 100644 --- a/src/Rserv.c +++ b/src/Rserv.c @@ -4927,6 +4927,8 @@ void Rserve_QAP1_connected(void *thp) { printf("done.\n"); #endif #ifdef FORKED + /* Honour workdir.clean */ + Rserve_cleanup(); /* we should not return to the main loop, but terminate instead */ exit(0); #endif