未验证 提交 f5d053d7 编写于 作者: O openharmony_ci 提交者: Gitee

!767 忽略 SIGPIPE信号的处理

Merge pull request !767 from Mupceet/init0607_1
......@@ -12,6 +12,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <signal.h>
#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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册