diff --git a/services/init/main.c b/services/init/main.c index 36d56bb3000b88f51e3280f5f641e2481ccd1f6e..8eee61652502c13b00db0d088915903c8368f55e 100755 --- a/services/init/main.c +++ b/services/init/main.c @@ -12,6 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +#include #include "init.h" #include "init_log.h" @@ -20,6 +21,7 @@ static const pid_t INIT_PROCESS_PID = 1; int main(int argc, char * const argv[]) { int isSecondStage = 0; + (void)signal(SIGPIPE, SIG_IGN); // Number of command line parameters is 2 if (argc == 2 && (strcmp(argv[1], "--second-stage") == 0)) { isSecondStage = 1;