Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Sep 1996 08:40:13 -0700 (PDT)
From:      Peter Wemm <peter>
To:        CVS-committers, cvs-all, cvs-usrsbin
Subject:   cvs commit:  src/usr.sbin/sup/supfilesrv supfilesrv.c
Message-ID:  <199609061540.IAA01880@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

peter       96/09/06 08:40:12

  Modified:    usr.sbin/sup/supfilesrv  supfilesrv.c
  Log:
  Rewrite part of the compression support so that it does not leave
  files in /var/tmp.  Sup needs to send the file size, so that
  prevents running gzip in a pipeline (sigh).
  
  It now opens a temporary file, and immediately unlinks it.  It sends
  gzip's output to the temp file, and when gzip is done, it rewinds the
  file and sends it. When the last fd is closed, the file storage is
  reclaimed.  With luck, this will stop those 15MB
  gzip < emacs-19.30.tgz > /var/tmp/tmp.xxxx files from being left behind
  and blowing out /var on freefall.
  
  While I have the platform, let me quote a fortune entry which sup reminds
  me of:  "It is a crock of sh!t, and it stinks!"
  
  Revision  Changes    Path
  1.5       +52 -9     src/usr.sbin/sup/supfilesrv/supfilesrv.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199609061540.IAA01880>