Uploaded image for project: 'Commons Daemon'
  1. Commons Daemon
  2. DAEMON-92

jsvc fails to execve() self on Linux

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.1
    • 1.0.2
    • None
    • None

    Description

      On Linux jsvc execve() itself.
      execve() requires an absolute path as the first argument therefore use of argv[0] only works when jsvc was invoked with a full path.
      Executing jsvc as relative path fails with "jsvc error: Cannot execute JSVC executor process".
      On Linux the full path to self is very easy to find: "/proc/self/exe"
      I'm attaching a patch fixing this problem and falling back to argv[0] in case /proc is not mounted.

      Attachments

        1. 1.0.1-execve-self.patch
          0.5 kB
          Simone Piunno

        Activity

          People

            Unassigned Unassigned
            pioppo Simone Piunno
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: