Alon Bar-Lev has uploaded a new change for review.

Change subject: core: expose preexec_fn at command execution
......................................................................

core: expose preexec_fn at command execution

Change-Id: I807b8bb6b09e7c16ad767a33f54b1e4a2f1f6eed
Signed-off-by: Alon Bar-Lev <[email protected]>
---
M ChangeLog
M src/otopi/plugin.py
2 files changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/otopi refs/changes/12/26512/1

diff --git a/ChangeLog b/ChangeLog
index 0d78d06..d2c1533 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,7 @@
  * core: log: add random part to log name to avoid predictable
    name.
  * core: add support for piped command execution.
+ * core: expose preexec_fn at command execution.
 
 2014-03-18 - Version 1.2.0
 
diff --git a/src/otopi/plugin.py b/src/otopi/plugin.py
index e338e42..ea64c60 100644
--- a/src/otopi/plugin.py
+++ b/src/otopi/plugin.py
@@ -752,6 +752,7 @@
         stdin=None,
         cwd=None,
         env=None,
+        preexec_fn=None,
         envAppend=None,
     ):
         """Execute a process.
@@ -792,6 +793,7 @@
                 close_fds=True,
                 cwd=cwd,
                 env=env,
+                preexec_fn=preexec_fn,
             )
             stdout, stderr = p.communicate(input=stdin)
             rc = p.returncode


-- 
To view, visit http://gerrit.ovirt.org/26512
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I807b8bb6b09e7c16ad767a33f54b1e4a2f1f6eed
Gerrit-PatchSet: 1
Gerrit-Project: otopi
Gerrit-Branch: master
Gerrit-Owner: Alon Bar-Lev <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to