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?
I wrote an obsidian plugin that uses
exec()to run a perl script that usesProc::Daemonto start program. However, the program took forever to start (more than 5 minutes), it turned out that the reason was that theOpenMax()returned 1073741816 in the closing filehandle loop:Proc-Daemon/lib/Proc/Daemon.pm
Line 225 in 5e53ec4
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?