long running things like cat need to hit on_idle everynow and then or watchdog will...
authorJim Morris <morris@wolfman.com>
Tue, 10 Nov 2015 02:05:30 +0000 (18:05 -0800)
committerJim Morris <morris@wolfman.com>
Tue, 10 Nov 2015 02:05:30 +0000 (18:05 -0800)
src/modules/utils/simpleshell/SimpleShell.cpp

index d904170..0129f92 100644 (file)
@@ -336,6 +336,8 @@ void SimpleShell::cat_command( string parameters, StreamOutput *stream )
             stream->puts(buffer.c_str());
             buffer.clear();
             if(linecnt > 80) linecnt = 0;
+            // we need to kick things or they die
+            THEKERNEL->call_event(ON_IDLE);
         }
         if ( newlines == limit ) {
             break;
@@ -395,6 +397,8 @@ void SimpleShell::upload_command( string parameters, StreamOutput *stream )
                     // HACK ALERT to get around fwrite corruption close and re open for append
                     fclose(fd);
                     fd = fopen(upload_filename.c_str(), "a");
+                    // we need to kick things or they die
+                    THEKERNEL->call_event(ON_IDLE);
                 }
             }
         }