Update xmlwf to exit with 3 if an output file could not be opened.
Update xmlwf exit code docs per review.
This commit is contained in:
parent
38cfc7165f
commit
f1634dbaea
@ -388,7 +388,7 @@ supports both.
|
||||
|
||||
<refsect1>
|
||||
<title>EXIT STATUS</title>
|
||||
<para>The following exit status codes are returned:
|
||||
<para>For option <option>-v</option> or <option>-h</option>, <command>&dhpackage;</command> always exits with status code 0. For other cases, the following exit status codes are returned:
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><option>0</option></term>
|
||||
@ -405,6 +405,11 @@ supports both.
|
||||
<listitem><para>An input file was not well-formed or could not be parsed.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><option>3</option></term>
|
||||
<listitem><para>If using the <option>-d</option> option, an error occurred opening an output file.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
@ -1057,7 +1057,7 @@ tmain(int argc, XML_Char **argv) {
|
||||
userData.fp = tfopen(outName, T("wb"));
|
||||
if (! userData.fp) {
|
||||
tperror(outName);
|
||||
exit(1);
|
||||
exit(3);
|
||||
}
|
||||
setvbuf(userData.fp, NULL, _IOFBF, 16384);
|
||||
#ifdef XML_UNICODE
|
||||
|
Loading…
Reference in New Issue
Block a user