jed-users mailing list

[2025 Date Index] [2025 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

[jed-users] new_process() can't handle input file > 65536 bytes?


Hi,

If you have the time, then create a file, "t", of 65537 bytes

   $ for i in {1..65537}; do echo -n a >> t; done

In a *scratch* buffer, insert the following lines:

   require("process");
   variable obj = new_process(["cat"]; write=1, stdin="t");
   () = obj.wait();

and then:

   alt-x evalbuffer
   
In my case the process hangs/freezes.

If I remove one single 'a' from the file "t" to make the size 65536 bytes,
then it completes.

Is it a case of some integer data type somewhere in the slang source files
that should be changed or is it just me who don't know what I'm doing?

Regards,
Morten
_______________________________________________
For list information, visit <http://jedsoft.org/jed/mailinglists.html>.


[2025 date index] [2025 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]