소스 검색

dpkg: Call standard_shutdown after invoking the post hooks

The error unwinding is part of the shutdown, and the invoke hooks
machinery might call ohshit, so it should be done at the end when
there's no more error handling in place.
Guillem Jover 16 년 전
부모
커밋
c32c4bf1d9
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/main.c

+ 2 - 2
src/main.c

@@ -721,10 +721,10 @@ int main(int argc, const char *const *argv) {
 
 
   actionfunction(argv);
   actionfunction(argv);
 
 
-  standard_shutdown();
-
   if (is_invoke_action(cipaction->arg))
   if (is_invoke_action(cipaction->arg))
     run_invoke_hooks(cipaction->olong, post_invoke_hooks);
     run_invoke_hooks(cipaction->olong, post_invoke_hooks);
 
 
+  standard_shutdown();
+
   return reportbroken_retexitstatus();
   return reportbroken_retexitstatus();
 }
 }