I wrote an obsidian plugin that uses exec() to run a perl script that uses Proc::Daemon to start program. However, the program took forever to start (more than 5 minutes), it turned out that the reason was that the OpenMax() returned 1073741816 in the closing filehandle loop:
|
foreach ( 0 .. OpenMax() ) { |
whereas it returns 1024 if I run the script from the terminal (not via obsidians exec()). Any idea why this happens and how to solve it?