You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Allen Wittenauer (JIRA)" <ji...@apache.org> on 2016/05/25 22:33:12 UTC

[jira] [Commented] (YARN-3876) get_executable() assumes everything is Linux

    [ https://issues.apache.org/jira/browse/YARN-3876?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15301016#comment-15301016 ] 

Allen Wittenauer commented on YARN-3876:
----------------------------------------

Is there any reason to not just call realpath(argv[0] from within main?  Then it should work everyone POSIX does.

> get_executable() assumes everything is Linux
> --------------------------------------------
>
>                 Key: YARN-3876
>                 URL: https://issues.apache.org/jira/browse/YARN-3876
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: build
>    Affects Versions: 2.7.0
>            Reporter: Alan Burlison
>            Assignee: Alan Burlison
>             Fix For: 3.0.0-alpha1
>
>         Attachments: YARN-3876.001.patch, YARN-3876.002.patch, YARN-3876.003.patch
>
>
> get_executable() in container-executor.c is non-portable and is hard-coded to assume Linux's /proc. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org