Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rtmlalunch launches rtcd with execve #456

Open
mmurooka opened this issue May 8, 2014 · 5 comments
Open

rtmlalunch launches rtcd with execve #456

mmurooka opened this issue May 8, 2014 · 5 comments
Assignees

Comments

@mmurooka
Copy link
Member

mmurooka commented May 8, 2014

As mentioned in start-jsk/rtmros_gazebo#35 (comment), rtmlaunch launches rtcd with execve.

Because of this, environment variables are not taken over to rtcd process.

Following is an example of strace log.

execve("/home/murooka/catkin_ws/ws_rtmros_common/devel/lib/openrtm_aist/bin/rtcd", ["/home/murooka/catkin_ws/ws_rtmro"..., "/home/murooka/catkin_ws/ws_rtmro"..., "-o", "manager.is_master:YES", "-o", "corba.nameservers:localhost:1500"..., "-o", "naming.formats:%n.rtc", "-o", "logger.file_name:/tmp/rtc%p.log", "-o", "exec_cxt.periodic.rate:200", "-o", "manager.shutdown_onrtcs:NO", "-o", "manager.modules.load_path:/home/"..., ...], [/* 87 vars */]) = 0
@garaemon
Copy link
Member

Do you want to execute rtcd with execv rather than execve?

@k-okada
Copy link
Member

k-okada commented May 28, 2014

if execv inherit current environment variables, yes.

On Wed, May 28, 2014 at 10:27 AM, Ryohei Ueda [email protected]:

Do you want to execute rtcd with execv rather than execve?


Reply to this email directly or view it on GitHubhttps://github.com//issues/456#issuecomment-44355623
.

@k-okada
Copy link
Member

k-okada commented Jul 11, 2014

@mmurooka, could you fix this?

@k-okada
Copy link
Member

k-okada commented Jul 11, 2014

or should we leave this unchanged?

@mmurooka
Copy link
Member Author

I looked at this problem a little bit.

Maybe this problem is not related to rtmlaunch.
rtcd process is launched by tag at https://github.com/start-jsk/rtmros_common/blob/master/hrpsys_tools/launch/hrpsys.launch#L101-L104.
I don't know why environment variable is not passed to rtcd process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants