commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simone Piunno (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DAEMON-92) jsvc fails to execve() self on Linux
Date Sat, 20 Jan 2007 12:42:29 GMT

     [ https://issues.apache.org/jira/browse/DAEMON-92?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Simone Piunno updated DAEMON-92:
--------------------------------

    Attachment: 1.0.1-execve-self.patch

> jsvc fails to execve() self on Linux
> ------------------------------------
>
>                 Key: DAEMON-92
>                 URL: https://issues.apache.org/jira/browse/DAEMON-92
>             Project: Commons Daemon
>          Issue Type: Bug
>    Affects Versions: 1.0.1 Final
>            Reporter: Simone Piunno
>             Fix For: 1.0.1 Final
>
>         Attachments: 1.0.1-execve-self.patch
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message