[File-cvs] CVS commit: file/src

Christos Zoulas christos at zoulas.com
Sun May 5 19:20:23 UTC 2019


Module Name:	file
Committed By:	christos
Date:		Sun May  5 19:20:23 UTC 2019

Modified Files:
	file/src: compress.c

Log Message:
>From Denys Vlasenko:

Use this more readable idiom:

    pid = fork();
    if (error) die;
    if (child) { /* child */ ...; exit; }
    /* parent */

This gets rid of error path sitting right in the middle of normal paths,
gets rid of /*NOTREACHED*/'s,
and allows (usually large) parent code path to be less indented.


To generate a diff of this commit:
cvs rdiff -r1.116 -r1.117 file/src/compress.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



More information about the File-cvs mailing list