~ubuntu-branches/ubuntu/natty/hello-debhelper/natty

« back to all changes in this revision

Viewing changes to TODO

  • Committer: Bazaar Package Importer
  • Author(s): Santiago Vila
  • Date: 2004-01-05 16:45:52 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040105164552-ue0rj3mos6hqsve4
Tags: 2.1.1-3
* Created debian/compat with "4" as contents.
* Build-Depends: debhelper (>= 4) accordingly.
* Things are now installed in debian/hello-debhelper, not debian/tmp.
* Updated config.guess and config.sub for GNU/K*BSD.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
GNU hello --- TODO
 
2
 
 
3
Todo:
 
4
 
 
5
    * remove README-alpha from the distribution.
 
6
    * check automake's support for `help2man'.
 
7
    * check bug-gnu-hello again.
 
8
    * Fix `make check'; cfg. Ulrich's remark at the end of TODO.
 
9
    * submit a new hello.pot.
 
10
    * replace doc/gpl.texi by the one with the recent FSF address.
 
11
 
 
12
-=-=-=-=-=-=-=-=-=-=-=-=-=- cut here -=-=-=-=-=-=-=-=-=-=-=-=-=-
 
13
 
 
14
Subject:      grep-2.0b: close stdout and make sure it succeeds
 
15
From:         meyering@eng.ascend.com (Jim Meyering)
 
16
Date:         1997/07/16
 
17
Message-ID:   <yzq4t9ucuz5.fsf@boom.eng.ascend.com>
 
18
Newsgroups:   gnu.utils.bug
 
19
 
 
20
 
 
21
Hi Alain, 
 
22
 
 
23
Thanks for taking up the reins!
 
24
 
 
25
Almost every program that writes a single byte to stdout should
 
26
do the following just before exiting: close stdout and give a
 
27
diagnostic if the close fails.
 
28
 
 
29
Otherwise, write errors can go unreported.  You can provoke this
 
30
by e.g. making grep generate lots of output and redirect that output
 
31
to a floppy or to any file system that's nearly full.
 
32
 
 
33
GNU hello should set a good example and do this, too.
 
34
 
 
35
Here's a patch I've been using for a long time:
 
36
 
 
37
        * src/grep.c: Cause grep to fail if `fclose (stdout)' fails.
 
38
 
 
39
--- grep.c.orig Wed Jul 16 20:44:20 1997
 
40
+++ grep.c      Wed Jul 16 20:44:30 1997
 
41
@@ -846,5 +846,8 @@ main(argc, argv)
 
42
        printf(_("(standard input)\n"));
 
43
     }
 
44
 
 
45
+  if (fclose (stdout) == EOF)
 
46
+    error (_("writing output", errno));
 
47
+
 
48
   exit(errseen ? 2 : status);
 
49
 }
 
50
 
 
51
 
 
52
end of file TODO