Skip to content

OpenMax() returns 1073741816 when called via javascript exec() in obsidian plugin #10

@hakonhagland

Description

@hakonhagland

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions