Branch: refs/heads/master Author: Dimitar Zhekov dimitar.zhekov@gmail.com Committer: Dimitar Zhekov dimitar.zhekov@gmail.com Date: Sun, 12 Jul 2015 14:12:20 UTC Commit: 7819cd11c7ac237eb08fbabc210a55eb95c9a0fb https://github.com/geany/geany/commit/7819cd11c7ac237eb08fbabc210a55eb95c9a0...
Log Message: ----------- Make the search.c exit status checks platform independent
Modified Paths: -------------- src/search.c
Modified: src/search.c 10 lines changed, 5 insertions(+), 5 deletions(-) =================================================================== @@ -1846,8 +1846,7 @@ static void search_read_io_stderr(GString *string, GIOCondition condition, gpoin static void search_finished(GPid child_pid, gint status, gpointer user_data) { const gchar *msg = _("Search failed."); -#ifdef G_OS_UNIX - gint exit_status = 1; + gint exit_status;
if (SPAWN_WIFEXITED(status)) { @@ -1858,9 +1857,10 @@ static void search_finished(GPid child_pid, gint status, gpointer user_data) exit_status = -1; g_warning("Find in Files: The command failed unexpectedly (signal received)."); } -#else - gint exit_status = status; -#endif + else + { + exit_status = 1; + }
switch (exit_status) {
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).