about summary refs log tree commit diff
path: root/scripts/nix-build.in
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-08-01T13·50+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-08-01T13·50+0000
commita29b64a231468174dcc693979fe40bd482b040b4 (patch)
treeda3144cbc6433bc411c8020e5bb683306c562939 /scripts/nix-build.in
parent4fde308ec047df9691bbfb6f6c1b1fd8d56e8404 (diff)
* Better error checking.
Diffstat (limited to 'scripts/nix-build.in')
-rw-r--r--scripts/nix-build.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/nix-build.in b/scripts/nix-build.in
index fab8fae84e74..1357b7a1297d 100644
--- a/scripts/nix-build.in
+++ b/scripts/nix-build.in
@@ -110,9 +110,9 @@ foreach my $expr (@exprs) {
 
     # Instantiate.
     my @drvPaths;
-    open DRVPATHS, "-|", "@bindir@/nix-instantiate", "--add-root", $drvLink, "--indirect", @instArgs, $expr;
+    my $pid = open DRVPATHS, "-|", "@bindir@/nix-instantiate", "--add-root", $drvLink, "--indirect", @instArgs, $expr;
     while (<DRVPATHS>) {chomp; push @drvPaths, $_;}
-    close DRVPATHS;
+    close DRVPATHS or die;
 
     foreach my $drvPath (@drvPaths) {
         my $target = readlink $drvPath;