fflush()? You've gotta do that more than once. Why not add a setbuf(stdout, NULL) to the top of the file? Quick, easy, simple. -- .sig files are idiotic and wasteful.