[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [OSSTEST PATCH v2 2/8] mg-transient-task: Put the ownd fd on a high fd, say, 114


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
  • Date: Fri, 21 Jun 2019 15:22:52 +0100
  • Authentication-results: esa3.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=ian.jackson@xxxxxxxxxxxxx; spf=Pass smtp.mailfrom=Ian.Jackson@xxxxxxxxxx; spf=None smtp.helo=postmaster@xxxxxxxxxxxxxxx
  • Cc: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
  • Delivery-date: Fri, 21 Jun 2019 14:24:14 +0000
  • Ironport-sdr: S/MP1bsxVWJTRNJS/9/40pVrjn8I/1YkAy965baEct3whNqluVgU6ySQIxssFyekraOHt3EcWj 7R5Z61tX1GdPKnwOtFxIXe+FNyu/Ld38Mit1SefOIDa5yIH5unhsDpMTUFYSKf49Uer4d+LrYh Ir8lUBYrkVYe1PihubSypz3WwikrQJOIcSm/4HmoubYbFdMhekC6IT7xCdG2kfA0FcVNnrNo61 MEhEdXyK+8HiAHlMu8tJMuoSg6VbwsuXMCTK/oHaEIwCjpTV/nulG7q4VZzHA0UZ26I+nn3wWM k4o=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

This avoids clashes with other shell scripts' etc. fds.

Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
v2: New patch
---
 mg-transient-task       | 5 ++++-
 tcl/JobDB-Executive.tcl | 1 +
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/mg-transient-task b/mg-transient-task
index 2b3b315e..ce5180ff 100755
--- a/mg-transient-task
+++ b/mg-transient-task
@@ -22,7 +22,10 @@ package require Tclx
 
 source ./tcl/daemonlib.tcl
 
-jobdb::become-task [string range "$argv" 0 50]
+set ownerqueue [jobdb::become-task [string range "$argv" 0 50]]
+dup $ownerqueue file114
+close $ownerqueue
+
 exec 2>@ stderr perl -I. -e {
         use Osstest;
         use Osstest::Executive;
diff --git a/tcl/JobDB-Executive.tcl b/tcl/JobDB-Executive.tcl
index 4f3409a9..56b61825 100644
--- a/tcl/JobDB-Executive.tcl
+++ b/tcl/JobDB-Executive.tcl
@@ -435,6 +435,7 @@ proc become-task {comment} {
                AND refkey = [pg_quote [lindex $refinfo 1]]
         "
     }
+    return $ownerqueue
 }
 
 proc preserve-task {seconds} {
-- 
2.11.0


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.