summaryrefslogtreecommitdiff
path: root/src/utils/copynpaste.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-05 01:48:47 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-05 01:48:47 +0300
commit9f87b4c92e3a4d524250dbbb376cd0f59b7d995e (patch)
tree8150d1efe5162c1f5c685ed6170280ff2048ce08 /src/utils/copynpaste.cpp
parent987a88ffb5bd00e7996e8267b2bd3c9ed48a40e2 (diff)
downloadplus-9f87b4c92e3a4d524250dbbb376cd0f59b7d995e.tar.gz
plus-9f87b4c92e3a4d524250dbbb376cd0f59b7d995e.tar.bz2
plus-9f87b4c92e3a4d524250dbbb376cd0f59b7d995e.tar.xz
plus-9f87b4c92e3a4d524250dbbb376cd0f59b7d995e.zip
Fix termination from forked processes if exec file failed.
Now forked processes silently terminated.
Diffstat (limited to 'src/utils/copynpaste.cpp')
-rw-r--r--src/utils/copynpaste.cpp4
1 files changed, 2 insertions, 2 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