Skip to contentSkip to conversation

init/FreeBSD: fix incorrect usage of $rc_pids in xendriverdomain

PATCH In review Roger Pau Monne 3 participants 4 messages Dec 21, 2016 – Dec 22, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 init/FreeBSD: fix incorrect usage of $rc_pids in xendriverdomain

It should be rc_pid.

---
Cc: Ian Jackson <[email protected]>
Cc: Wei Liu <[email protected]>

---
 tools/hotplug/FreeBSD/rc.d/xendriverdomain.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tools/hotplug/FreeBSD/rc.d/xendriverdomain.in +2 -2
index b01a470..a032822 100644
@@ -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"
Signature · 7 lines
2.10.1 (Apple Git-78)


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#1 lore raw
Quoted 4 lines · Roger Pau Monne

It should be rc_pid.

Acked + applied.

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

Quoted 25 lines

---
Cc: Ian Jackson <[email protected]>
Cc: Wei Liu <[email protected]>

---
 tools/hotplug/FreeBSD/rc.d/xendriverdomain.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tools/hotplug/FreeBSD/rc.d/xendriverdomain.in +2 -2
index b01a470..a032822 100644
@@ -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"
Signature · 1 line
2.10.1 (Apple Git-78)

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#2 lore raw
Quoted 10 lines · Wei Liu
Quoted 4 lines · Roger Pau Monne

It should be rc_pid.

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
[email protected]
https://lists.xen.org/xen-devel

#3 lore raw

Roger Pau Monne writes ("Re: [PATCH] init/FreeBSD: fix incorrect usage of $rc_pids in xendriverdomain"):

Quoted 7 lines · Wei Liu
Quoted 2 lines

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
[email protected]
https://lists.xen.org/xen-devel