commit mbuffer for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package mbuffer for openSUSE:Factory checked in at 2022-05-30 12:44:26 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/mbuffer (Old) and /work/SRC/openSUSE:Factory/.mbuffer.new.2254 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "mbuffer" Mon May 30 12:44:26 2022 rev:26 rq:979792 version:20220418 Changes: -------- --- /work/SRC/openSUSE:Factory/mbuffer/mbuffer.changes 2022-02-01 16:59:50.908936830 +0100 +++ /work/SRC/openSUSE:Factory/.mbuffer.new.2254/mbuffer.changes 2022-05-30 12:45:21.764503311 +0200 @@ -1,0 +2,6 @@ +Sun May 29 19:34:00 UTC 2022 - Dirk M��ller <dmueller@suse.com> + +- update to 20220418: + * fix handling of filesystem full on stdout + +------------------------------------------------------------------- Old: ---- mbuffer-20211018.tgz New: ---- mbuffer-20220418.tgz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ mbuffer.spec ++++++ --- /var/tmp/diff_new_pack.hdqHdx/_old 2022-05-30 12:45:22.276503992 +0200 +++ /var/tmp/diff_new_pack.hdqHdx/_new 2022-05-30 12:45:22.284504003 +0200 @@ -18,7 +18,7 @@ Name: mbuffer -Version: 20211018 +Version: 20220418 Release: 0 Summary: Replacement for "buffer" with many more Features License: GPL-3.0-or-later ++++++ mbuffer-20211018.tgz -> mbuffer-20220418.tgz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mbuffer-20211018/.hg_archival.txt new/mbuffer-20220418/.hg_archival.txt --- old/mbuffer-20211018/.hg_archival.txt 2021-10-18 21:38:42.000000000 +0200 +++ new/mbuffer-20220418/.hg_archival.txt 2022-04-18 22:15:59.000000000 +0200 @@ -1,4 +1,4 @@ repo: 6e3b485d74645931e2408ed1f57e659029b5639a -node: 031876543708de476cc59c9eec9361869641c27e +node: c7c0963507efb243a9b5089ba79658213b0df6a9 branch: default -tag: R20211018 +tag: R20220418 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mbuffer-20211018/.hgtags new/mbuffer-20220418/.hgtags --- old/mbuffer-20211018/.hgtags 2021-10-18 21:38:42.000000000 +0200 +++ new/mbuffer-20220418/.hgtags 2022-04-18 22:15:59.000000000 +0200 @@ -111,3 +111,4 @@ aa632d17611d995b3ae820a654393068b24a3ff5 R20210328 05252089169d0119149937b2a9c647678cc81a20 R20210829 3b8642c23858eaa90737280ac2c0cd0761ecb62a R20211004 +031876543708de476cc59c9eec9361869641c27e R20211018 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mbuffer-20211018/ChangeLog new/mbuffer-20220418/ChangeLog --- old/mbuffer-20211018/ChangeLog 2021-10-18 21:38:42.000000000 +0200 +++ new/mbuffer-20220418/ChangeLog 2022-04-18 22:15:59.000000000 +0200 @@ -1,3 +1,6 @@ +20220418: +- fix handling of filesystem full on stdout + 20211018: - fixes related to TCP timeout handling - enhancement: support setting config file via env var MBUFFERRC diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mbuffer-20211018/mbuffer.c new/mbuffer-20220418/mbuffer.c --- old/mbuffer-20211018/mbuffer.c 2021-10-18 21:38:42.000000000 +0200 +++ new/mbuffer-20220418/mbuffer.c 2022-04-18 22:15:59.000000000 +0200 @@ -73,6 +73,8 @@ #endif +static const char Stdout[] = "<stdout>"; + static int kb2str(char *s, double v) { @@ -495,7 +497,29 @@ struct timespec now; double diff; unsigned min,hr; + struct stat st; + + /* request user to free up disk space */ + if (outfile == Stdout) { + int err = pthread_mutex_lock(&TermMut); + assert(0 == err); + char c = 0, msg[] = "\nfilesystem full - please provide enough space and press return when ready...\n"; + if (-1 == write(STDERR_FILENO,msg,sizeof(msg))) { + errormsg("error accessing controlling terminal for manual filesystem cleanup request: %s\n",strerror(errno)); + return -1; + } + do { + if (-1 == read(STDERR_FILENO,&c,1) && (errno != EINTR)) { + errormsg("error accessing controlling terminal for manual volume change request: %s\nConsider using autoload option, when running mbuffer without terminal.\n",strerror(errno)); + return -1; + } + } while (c != '\n'); + err = pthread_mutex_unlock(&TermMut); + assert(0 == err); + return out; + } + /* regular multi-volume handling */ if (!outfile) { errormsg("End of volume, but not end of input:\n" "Output file must be given (option -o) for multi volume support!\n"); @@ -1228,8 +1252,8 @@ d->fd = dup(STDOUT_FILENO); err = dup2(STDERR_FILENO,STDOUT_FILENO); assert(err != -1); - d->name = "<stdout>"; - d->arg = "<stdout>"; + d->name = Stdout; + d->arg = Stdout; d->port = 0; d->result = 0; bzero(&d->thread,sizeof(d->thread));
participants (1)
-
Source-Sync