提交 a4fc7f30 编写于 作者: J Jimmy Yih

Change gppylib xargs call to use -I flag

The -i flag is deprecated and only available on Linux systems.  On
MacOS and other BSD systems, xargs does not have the -i flag.  Since
we do not give an argument to -i, it is basically doing -I{} so change
it to be explicit and proper.
上级 5328564a
......@@ -1202,7 +1202,7 @@ def is_pid_postmaster(datadir, pid, remoteHost=None):
is_postmaster = True
if (validate_command ('pgrep', datadir, ctxt, remoteHost) and
validate_command ('pwdx', datadir, ctxt, remoteHost)):
cmdStr = 'pgrep postgres | xargs -i pwdx {} | grep "%s" | grep "^%s:" | cat' % (datadir, pid)
cmdStr = 'pgrep postgres | xargs -I{} pwdx {} | grep "%s" | grep "^%s:" | cat' % (datadir, pid)
cmd = Command("search for postmaster process", cmdStr, ctxt=ctxt, remoteHost=remoteHost)
res = None
try:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册