Changeset: 47307c2815ab for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=47307c2815ab
Modified Files:
        monetdb5/mal/mal_interpreter.c
Branch: iot
Log Message:

Additional defense line


diffs (12 lines):

diff --git a/monetdb5/mal/mal_interpreter.c b/monetdb5/mal/mal_interpreter.c
--- a/monetdb5/mal/mal_interpreter.c
+++ b/monetdb5/mal/mal_interpreter.c
@@ -541,7 +541,7 @@ str runMALsequence(Client cntxt, MalBlkP
                //Ensure we spread system resources over multiple users as well.
                runtimeProfileBegin(cntxt, mb, stk, pci, &runtimeProfile);
                if (runtimeProfile.ticks > lastcheck + CHECKINTERVAL) {
-                       if (cntxt->fdin && !mnstr_isalive(cntxt->fdin->s)) {
+                       if (cntxt->fdin && cntxt->fdin->s && 
!mnstr_isalive(cntxt->fdin->s)) {
                                cntxt->mode = FINISHCLIENT;
                                stkpc = stoppc;
                                ret= createException(MAL, "mal.interpreter", 
"prematurely stopped client");
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to