Changeset 1932 in MondoRescue for branches/2.2.6/mondo
- Timestamp:
- May 7, 2008, 11:54:58 AM (17 years ago)
- Location:
- branches/2.2.6/mondo/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.6/mondo/src/common/libmondo-cli.c
r1918 r1932 170 170 extern bool g_text_mode; 171 171 extern char g_startdir[MAX_STR_LEN]; ///< ????? @bug ????? 172 extern bool g_sigpipe;173 172 extern char *MONDO_OPTIONS; 174 173 -
branches/2.2.6/mondo/src/mondorestore/mondorestore.c
r1930 r1932 54 54 * @{ 55 55 */ 56 /**57 * If TRUE, then SIGPIPE was just caught.58 * Set by the signal handler; cleared after it's handled.59 */60 bool g_sigpipe_caught = FALSE;61 56 62 57 /** … … 1490 1485 sprintf(command, "%s -dc > \"%s\" 2>> %s", bkpinfo->zip_exe, 1491 1486 file_to_openout, MONDO_LOGFILE); 1487 if (strcmp(bkpinfo->zip_exe, "gzip") == 0) { 1488 /* Ignore SIGPIPE for gzip as it causes errors on big files 1489 * Cf: http://trac.mondorescue.org/ticket/244 1490 */ 1491 signal(SIGPIPE,SIG_IGN); 1492 } 1492 1493 } 1493 1494 sprintf(tmp, "Pipe command = '%s'", command); … … 1542 1543 } 1543 1544 paranoid_pclose(pout); 1545 1546 if (bkpinfo->zip_exe[0]) { 1547 if (strcmp(bkpinfo->zip_exe, "gzip") == 0) { 1548 /* Re-enable SIGPIPE for gzip 1549 */ 1550 signal(SIGPIPE, terminate_daemon); 1551 } 1552 } 1544 1553 1545 1554 log_msg(1, "pathname_of_last_file_restored is now %s",
Note:
See TracChangeset
for help on using the changeset viewer.