TL;DR: Attached: Patch to allow split to write into FIFOs.
Currently, split fails when its output files are FIFOs because
FIFOs cannot be ftruncate()d. Split exits with this error message:
split: xaa: error truncating: Invalid argument
The attached patch causes split to only attempt the ftruncate when its
output is a regular file.