X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=backend%2Fdvi%2Fdvi-document.c;h=a1097c94563d4b775db61b9a1108bb6149e94813;hb=0da7f82a8a347f47809b4f9553555b18323089d9;hp=a6c33408c14d4c741b94e98440b6172e313eb7fb;hpb=fd6cd4eb3b7d5ce61417aec33bd68eabf63e3349;p=evince.git diff --git a/backend/dvi/dvi-document.c b/backend/dvi/dvi-document.c index a6c33408..a1097c94 100644 --- a/backend/dvi/dvi-document.c +++ b/backend/dvi/dvi-document.c @@ -32,6 +32,8 @@ #include #include +#include +#include GMutex *dvi_context_mutex = NULL; @@ -398,8 +400,8 @@ dvi_document_file_exporter_end (EvFileExporter *exporter) if (success == FALSE) { g_warning ("Error: %s", err->message); - } else if (exit_stat != 0) { - g_warning ("Error: dvipdfm exited with non-zero status."); + } else if (!WIFEXITED(exit_stat) || WEXITSTATUS(exit_stat) != EXIT_SUCCESS){ + g_warning ("Error: dvipdfm does not end normally or exit with a failure status."); } if (err)