summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/utils/copynpaste.cpp4
-rw-r--r--src/utils/process.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/copynpaste.cpp b/src/utils/copynpaste.cpp
index 88e2db580..3c7a5b3b7 100644
--- a/src/utils/copynpaste.cpp
+++ b/src/utils/copynpaste.cpp
@@ -439,7 +439,7 @@ static bool runxsel(std::string& text, const char *p1, const char *p2)
if (dup2(fd[0], STDIN_FILENO) != STDIN_FILENO)
{
close(fd[0]);
- exit(1);
+ _exit(1);
}
close(fd[0]);
}
@@ -454,7 +454,7 @@ static bool runxsel(std::string& text, const char *p1, const char *p2)
static_cast<char *>(nullptr));
}
- exit(1);
+ _exit(1);
}
// parent
diff --git a/src/utils/process.cpp b/src/utils/process.cpp
index a5629fbc9..8e238b4cc 100644
--- a/src/utils/process.cpp
+++ b/src/utils/process.cpp
@@ -158,7 +158,7 @@ int execFileWait(std::string pathName, std::string name,
execl(pathName.c_str(), name.c_str(), arg1.c_str(),
arg2.c_str(), static_cast<char *>(nullptr));
}
- exit(-1);
+ _exit(-1);
}
// monitoring process