xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] init/FreeBSD: fix incorrect usage of $rc_pids in xendriverdomain
@ 2016-12-21 16:47 Roger Pau Monne
  2016-12-21 16:53 ` Wei Liu
  0 siblings, 1 reply; 4+ messages in thread
From: Roger Pau Monne @ 2016-12-21 16:47 UTC (permalink / raw)
  To: xen-devel; +Cc: Wei Liu, Ian Jackson, Roger Pau Monne

It should be rc_pid.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reported-by: Nathan Friess <nathan.friess@gmail.com>
---
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>
---
 tools/hotplug/FreeBSD/rc.d/xendriverdomain.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/hotplug/FreeBSD/rc.d/xendriverdomain.in b/tools/hotplug/FreeBSD/rc.d/xendriverdomain.in
index b01a470..a032822 100644
--- a/tools/hotplug/FreeBSD/rc.d/xendriverdomain.in
+++ b/tools/hotplug/FreeBSD/rc.d/xendriverdomain.in
@@ -38,8 +38,8 @@ xendriverdomain_stop()
 
 	rc_pid=$(check_pidfile ${XLDEVD_PIDFILE} ${sbindir}/xl)
 
-	kill -${sig_stop:-TERM} $rc_pids
-	wait_for_pids $rc_pids
+	kill -${sig_stop:-TERM} $rc_pid
+	wait_for_pids $rc_pid
 }
 
 run_rc_command "$1"
-- 
2.10.1 (Apple Git-78)


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] init/FreeBSD: fix incorrect usage of $rc_pids in xendriverdomain
  2016-12-21 16:47 [PATCH] init/FreeBSD: fix incorrect usage of $rc_pids in xendriverdomain Roger Pau Monne
@ 2016-12-21 16:53 ` Wei Liu
  2016-12-22 10:51   ` Roger Pau Monne
  0 siblings, 1 reply; 4+ messages in thread
From: Wei Liu @ 2016-12-21 16:53 UTC (permalink / raw)
  To: Roger Pau Monne; +Cc: xen-devel, Ian Jackson, Wei Liu

On Wed, Dec 21, 2016 at 04:47:26PM +0000, Roger Pau Monne wrote:
> It should be rc_pid.
> 
> Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
> Reported-by: Nathan Friess <nathan.friess@gmail.com>

Acked + applied.

I suspect all the patches to fix FreeBSD init script should be
backported?

> ---
> Cc: Ian Jackson <ian.jackson@eu.citrix.com>
> Cc: Wei Liu <wei.liu2@citrix.com>
> ---
>  tools/hotplug/FreeBSD/rc.d/xendriverdomain.in | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/tools/hotplug/FreeBSD/rc.d/xendriverdomain.in b/tools/hotplug/FreeBSD/rc.d/xendriverdomain.in
> index b01a470..a032822 100644
> --- a/tools/hotplug/FreeBSD/rc.d/xendriverdomain.in
> +++ b/tools/hotplug/FreeBSD/rc.d/xendriverdomain.in
> @@ -38,8 +38,8 @@ xendriverdomain_stop()
>  
>  	rc_pid=$(check_pidfile ${XLDEVD_PIDFILE} ${sbindir}/xl)
>  
> -	kill -${sig_stop:-TERM} $rc_pids
> -	wait_for_pids $rc_pids
> +	kill -${sig_stop:-TERM} $rc_pid
> +	wait_for_pids $rc_pid
>  }
>  
>  run_rc_command "$1"
> -- 
> 2.10.1 (Apple Git-78)
> 

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] init/FreeBSD: fix incorrect usage of $rc_pids in xendriverdomain
  2016-12-21 16:53 ` Wei Liu
@ 2016-12-22 10:51   ` Roger Pau Monne
  2016-12-22 10:57     ` Ian Jackson
  0 siblings, 1 reply; 4+ messages in thread
From: Roger Pau Monne @ 2016-12-22 10:51 UTC (permalink / raw)
  To: Wei Liu; +Cc: xen-devel, Ian Jackson

On Wed, Dec 21, 2016 at 04:53:52PM +0000, Wei Liu wrote:
> On Wed, Dec 21, 2016 at 04:47:26PM +0000, Roger Pau Monne wrote:
> > It should be rc_pid.
> > 
> > Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
> > Reported-by: Nathan Friess <nathan.friess@gmail.com>
> 
> Acked + applied.
> 
> I suspect all the patches to fix FreeBSD init script should be
> backported?

Yes, that would be nice. I plan to apply them to the packages in the FreeBSD
ports tree, which AFAIK is what most people tend to use in order to run Xen on
FreeBSD.

Roger.


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] init/FreeBSD: fix incorrect usage of $rc_pids in xendriverdomain
  2016-12-22 10:51   ` Roger Pau Monne
@ 2016-12-22 10:57     ` Ian Jackson
  0 siblings, 0 replies; 4+ messages in thread
From: Ian Jackson @ 2016-12-22 10:57 UTC (permalink / raw)
  To: Roger Pau Monne; +Cc: xen-devel, Wei Liu

Roger Pau Monne writes ("Re: [PATCH] init/FreeBSD: fix incorrect usage of $rc_pids in xendriverdomain"):
> On Wed, Dec 21, 2016 at 04:53:52PM +0000, Wei Liu wrote:
> > I suspect all the patches to fix FreeBSD init script should be
> > backported?
> 
> Yes, that would be nice. I plan to apply them to the packages in the FreeBSD
> ports tree, which AFAIK is what most people tend to use in order to run Xen on
> FreeBSD.

I have made a note in my backport queue.

Thanks,
Ian.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-12-22 10:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-21 16:47 [PATCH] init/FreeBSD: fix incorrect usage of $rc_pids in xendriverdomain Roger Pau Monne
2016-12-21 16:53 ` Wei Liu
2016-12-22 10:51   ` Roger Pau Monne
2016-12-22 10:57     ` Ian Jackson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).