Menu

#10 ytnef command-line program doesn't signal completion status

open
nobody
5
2013-01-31
2010-01-20
No

The main() routine in ytnef doesn't return a coherent status value. When used as a command-line program on Unix systems, this is an important thing to do. It should return 0 for successful completion, and a non-zero value for error indications.

Discussion

  • Bill Janssen

    Bill Janssen - 2010-01-20

    Here's a patch. Note that it also writes to stderr instead of stdout in various places so that that output can be appropriately captured by controlling processes.

     
  • Bill Janssen

    Bill Janssen - 2010-01-20
     

Log in to post a comment.

MongoDB Logo MongoDB