You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "jiangrui (Jira)" <ji...@apache.org> on 2022/07/19 08:11:00 UTC

[jira] [Updated] (HADOOP-18348) Echo java process's parent pid to the pid file intermediate state

     [ 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: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org