nixpkgs/pkgs/applications/networking/cluster/rq/rq.patch
Pjotr Prins d2499a6e52 Patch for rq (send upstream)
svn path=/nixpkgs/trunk/; revision=12949
2008-10-05 08:48:23 +00:00

12 lines
545 B
Diff

diff -r b58e759f84db lib/rq/jobrunner.rb
--- a/lib/rq/jobrunner.rb Sun Sep 28 13:33:06 2008 +0200
+++ b/lib/rq/jobrunner.rb Sun Sep 28 13:35:09 2008 +0200
@@ -85,7 +85,7 @@ unless defined? $__rq_jobrunner__
command =
if @sh_like
- sin = "0<#{ @stdin }" if @stdin
+ sin = "0<#{ @stdin }" if @stdin and File.exist?(@stdin)
sout = "1>#{ @stdout }" if @stdout
serr = "2>#{ @stderr }" if @stderr
"( PATH=#{ path }:$PATH #{ command } ;) #{ sin } #{ sout } #{ serr }"