chiark / gitweb /
process-util: initialize block_signals
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 10 Jan 2018 01:22:35 +0000 (10:22 +0900)
committerSven Eden <yamakuzure@gmx.net>
Wed, 30 May 2018 05:50:02 +0000 (07:50 +0200)
CID 1384240.

src/basic/process-util.c

index b468429a8ccd1d655d8b436b8aceb9087490f8ee..8c90f666e8358493b09fda6c9797dd4c01eff828 100644 (file)
@@ -1176,7 +1176,7 @@ int safe_fork_full(
 
         pid_t original_pid, pid;
         sigset_t saved_ss, ss;
-        bool block_signals;
+        bool block_signals = false;
         int prio, r;
 
         /* A wrapper around fork(), that does a couple of important initializations in addition to mere forking. Always