All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Jackson <ian.jackson@eu.citrix.com>
To: <xen-devel@lists.xenproject.org>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Subject: [Xen-devel] [OSSTEST PATCH v2 2/8] mg-transient-task: Put the ownd fd on a high fd, say, 114
Date: Fri, 21 Jun 2019 15:22:52 +0100	[thread overview]
Message-ID: <20190621142258.1543-3-ian.jackson@eu.citrix.com> (raw)
In-Reply-To: <20190621142258.1543-1-ian.jackson@eu.citrix.com>

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

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
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@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

  parent reply	other threads:[~2019-06-21 14:24 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-21 14:22 [Xen-devel] [OSSTEST PATCH v2 0/8] mg-repro-* improvements Ian Jackson
2019-06-21 14:22 ` [Xen-devel] [OSSTEST PATCH v2 1/8] mg-transient-task: New utility Ian Jackson
2019-06-21 14:22 ` Ian Jackson [this message]
2019-06-21 14:22 ` [Xen-devel] [OSSTEST PATCH v2 3/8] mg-repro-setup: Do all builds in their own tasks, regardless Ian Jackson
2019-06-21 14:22 ` [Xen-devel] [OSSTEST PATCH v2 4/8] mg-repro-setup: Do not imply that a --rebuild needs a +TREE Ian Jackson
2019-06-21 14:22 ` [Xen-devel] [OSSTEST PATCH v2 5/8] mg-repro-setup: Introduce `statictask' variable Ian Jackson
2019-06-21 14:22 ` [Xen-devel] [OSSTEST PATCH v2 6/8] mg-repro-setup: New mode --autoalloc Ian Jackson
2019-06-21 14:22 ` [Xen-devel] [OSSTEST PATCH v2 7/8] mg-repro-setup: actually accept --rebuild -rVAR=VALUE Ian Jackson
2019-06-21 14:22 ` [Xen-devel] [OSSTEST PATCH v2 8/8] mg-repro-setup: Do not wrongly reject multiple --rebuild Ian Jackson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190621142258.1543-3-ian.jackson@eu.citrix.com \
    --to=ian.jackson@eu.citrix.com \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.