Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore sigpipe in gapir
Browse files Browse the repository at this point in the history
sean-purcell committed Aug 3, 2018

Verified

This commit was signed with the committer’s verified signature.
sreuland shawn
1 parent 0170640 commit fc2480e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/gapir/cc/main.cpp
Original file line number Diff line number Diff line change
@@ -31,6 +31,7 @@
#include "core/cc/supported_abis.h"
#include "core/cc/target.h"

#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -272,6 +273,11 @@ int main(int argc, const char* argv[]) {
}
}

#if TARGET_OS == GAPID_OS_LINUX
// Ignore SIGPIPE so we can log after gapis closes.
signal(SIGPIPE, SIG_IGN);
#endif

if (wait_for_debugger) {
GAPID_INFO("Waiting for debugger to attach");
core::Debugger::waitForAttach();

0 comments on commit fc2480e

Please sign in to comment.