[
https://issues.apache.org/jira/browse/HADOOP-18348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
jiangrui updated HADOOP-18348:
------------------------------
Summary: Echo java process's parent pid to the pid file intermediate state
(was: echo java process's parent pid to the pid file intermediate state)
> Echo java process's parent pid to the pid file intermediate state
> -----------------------------------------------------------------
>
> Key: HADOOP-18348
> URL: https://issues.apache.org/jira/browse/HADOOP-18348
> Project: Hadoop Common
> Issue Type: Bug
> Components: common
> Reporter: jiangrui
> Priority: Major
>
> In hadoop-function.sh file,there is hadoop_start_daemon and
> hadoop_start_daemon_wrapper functions.
> hadoop_start_daemon_wrapper invoke hadoop_start_daemon and put it to
> background.
>
> In hadoop_start_daemon function, echo $$ > pidfile,cause this scenario
> because hadoop_start_daemon is in a subshell by ampersand, and $ expands to
> the process ID of the current shell, not the subshell.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]