From 6b36135970dd9ba4694e626e3fbd8166c64d8cdc Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 7 Jan 2010 12:37:45 +0100 Subject: ccpp: add a possibility to disable backtrace generation + assorted minor tweaks Signed-off-by: Denys Vlasenko --- lib/Plugins/Mailx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Plugins/Mailx.cpp') diff --git a/lib/Plugins/Mailx.cpp b/lib/Plugins/Mailx.cpp index 6904c169..70eddb8e 100644 --- a/lib/Plugins/Mailx.cpp +++ b/lib/Plugins/Mailx.cpp @@ -68,7 +68,7 @@ static void exec_and_feed_input(uid_t uid, const char* pText, char **pArgs) safe_write(pipein[1], pText, strlen(pText)); close(pipein[1]); - wait(NULL); /* wait for command completion */ + waitpid(child, NULL, 0); /* wait for command completion */ } static char** append_str_to_vector(char **vec, unsigned &size, const char *str) -- cgit