Просмотр исходного кода

fix build error when there is more than one xinetd running

https://github.com/NagiosEnterprises/nrpe/pull/105 was merged into NRPE instead of autoconf-macros
so I'm updating it here manually.
John C. Frickson 9 лет назад
Родитель
Сommit
15ae464aaa
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      ax_nagios_get_inetd

+ 1 - 1
ax_nagios_get_inetd

@@ -115,7 +115,7 @@ AC_SUBST(inetd_type)
 						inetd_type=`UNIX95= ps -A -o comm | grep inetd | head -1`,
 
 					[*],
-						inetd_type=[`ps -C "inetd,xinetd" -o fname | grep -vi COMMAND`])
+						inetd_type=[`ps -C "inetd,xinetd" -o fname | grep -vi COMMAND | head -1`])
 			fi
 
 			if test x"$inetd_type" = x; then