chiark / gitweb /
Dgit.pm: "confess" when we die due to a warning, rather than symply dieing.
[dgit.git] / Debian / Dgit.pm
index ebf9d7db0dfcbc5e4838ad9bf6ccbe1cf7f5ccaa..d086cbe50d36d33e14cea82de5f00b8b367d569a 100644 (file)
@@ -108,7 +108,7 @@ sub forkcheck_mainprocess () {
 sub setup_sigwarn () {
     forkcheck_setup();
     $SIG{__WARN__} = sub { 
-       die $_[0] if forkcheck_mainprocess;
+       confess $_[0] if forkcheck_mainprocess;
     };
 }