about summary refs log tree commit diff
path: root/converter/other/tifftopnm.c
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2009-07-22 20:32:15 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2009-07-22 20:32:15 +0000
commit1845c823f6a0870a12768a6a415cc4897f34df01 (patch)
treeaee3ecb2a3806090414f10dcfc4b70cbe1265dc2 /converter/other/tifftopnm.c
parent16e51c4fcfc3fe872e7aafb9b32560fdc894b1ba (diff)
downloadnetpbm-mirror-1845c823f6a0870a12768a6a415cc4897f34df01.tar.gz
netpbm-mirror-1845c823f6a0870a12768a6a415cc4897f34df01.tar.xz
netpbm-mirror-1845c823f6a0870a12768a6a415cc4897f34df01.zip
improve comments
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@953 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other/tifftopnm.c')
-rw-r--r--converter/other/tifftopnm.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/converter/other/tifftopnm.c b/converter/other/tifftopnm.c
index e97c40e0..28550c02 100644
--- a/converter/other/tifftopnm.c
+++ b/converter/other/tifftopnm.c
@@ -721,7 +721,7 @@ createFlipProcess(FILE *         const outFileP,
    Create a process that runs the program Pamflip and writes its output
    to *imageoutFileP.
 
-   The process takes it input from a pipe that we create.  We return as
+   The process takes its input from a pipe that we create.  We return as
    *inPipePP a file stream connected to the other end of that pipe.
 
    I.e. Caller will write a Netpbm file stream to **inPipePP and a flipped
@@ -952,9 +952,12 @@ static void
 pnmOut_term(pnmOut * const pnmOutP) {
 
     if (pnmOutP->flipping) {
-        /* Closing the pipes also terminates the Pamflip processes and
-           they consequently flush their output to pnmOutP->imageoutFileP
-           and pnmOutP->alphaFileP .
+        /* Closing the pipes also causes the Pamflip processes to terminate
+           and they consequently flush their output to pnmOutP->imageoutFileP
+           and pnmOutP->alphaFileP and close those file descriptors.
+
+           But this termination and flushing and closing completes some time
+           _after_ our close.
         */
         if (pnmOutP->imagePipeP)
             fclose(pnmOutP->imagePipeP);