Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-9227

Should we use execvp instead of execv

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Not specified
    • Resolution: Fixed
    • 3.10.6
    • 3.10.8
    • ECL Standard Library
    • None

    Description

      The exec routine in jutil.cpp calls execv instead of execvp. This necessitates the full path of the program be specified in functions like Std.System.Utils.CmdProcess. Otherwise, the exec call fails with EACCES. On another note, is the env_in argument to callExternalProgram ever true?

      Pipe is immune to this because it does not use the callExternalProgram routine.

      At the very least, it needs to be documented that an absolute path must be provided.

      Attachments

        Activity

          People

            richardkchapman Richard Chapman
            starsid Siddhartha Bagaria (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: