Changeset 2435:dd9866e2059f for commands.c
- Timestamp:
- 2001-06-05 00:55:55 (7 years ago)
- Branch:
- HEAD
- Files:
-
- 1 modified
-
commands.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
commands.c
r2406 r2435 125 125 { 126 126 mutt_error (_("Cannot create display filter")); 127 fclose (fpfilterout);127 safe_fclose (&fpfilterout); 128 128 unlink (tempfile); 129 129 return 0; … … 325 325 #endif 326 326 327 thepid = mutt_create_filter (cmd, &fpout, NULL, NULL); 327 if ((thepid = mutt_create_filter (cmd, &fpout, NULL, NULL)) < 0) 328 { 329 mutt_perror _("Can't create filter process"); 330 return 1; 331 } 332 328 333 pipe_msg (h, fpout, decode); 329 fclose (fpout);334 safe_fclose (&fpout); 330 335 rc = mutt_wait_filter (thepid); 331 336 } … … 359 364 mutt_message_hook (Context, Context->hdrs[Context->v2r[i]], M_MESSAGEHOOK); 360 365 mutt_endwin (NULL); 361 thepid = mutt_create_filter (cmd, &fpout, NULL, NULL); 366 if ((thepid = mutt_create_filter (cmd, &fpout, NULL, NULL)) < 0) 367 { 368 mutt_perror _("Can't create filter process"); 369 return 1; 370 } 362 371 pipe_msg (Context->hdrs[Context->v2r[i]], fpout, decode); 363 372 /* add the message separator */ 364 373 if (sep) fputs (sep, fpout); 365 fclose (fpout);374 safe_fclose (&fpout); 366 375 if (mutt_wait_filter (thepid) != 0) 367 376 rc = 1; … … 372 381 { 373 382 mutt_endwin (NULL); 374 thepid = mutt_create_filter (cmd, &fpout, NULL, NULL); 383 if ((thepid = mutt_create_filter (cmd, &fpout, NULL, NULL)) < 0) 384 { 385 mutt_perror _("Can't create filter process"); 386 return 1; 387 } 375 388 for (i = 0; i < Context->vcount; i++) 376 389 { … … 383 396 } 384 397 } 385 fclose (fpout);398 safe_fclose (&fpout); 386 399 if (mutt_wait_filter (thepid) != 0) 387 400 rc = 1;
