ps exits when gets the signal SIGPIPE

ps's output is sometimes redirected into a socket (ex: bugreport). If
that socket is then closed, ps gets a SIGPIPE and crashes, resulting
in a tombstone.  It is better that ps just exits gracefully instead.

Change-Id: Id5bf73f626580dca2ab03b6f12a444be1640407c
Reviewed-on: http://gerrit.pcs.mot.com/537642
SLT-Approved: Slta Waiver <sltawvr@motorola.com>
Tested-by: Jira Key <jirakey@motorola.com>
Reviewed-by: Klocwork kwcheck <klocwork-kwcheck@sourceforge.mot.com>
Reviewed-by: Xue-Ying Hou <a16543@email.mot.com>
Reviewed-by: John Michelau <w14107@motorola.com>
Reviewed-by: Xin Guan <a18772@motorola.com>
Reviewed-by: David Ding <dding@motorola.com>
Submit-Approved: Jira Key <jirakey@motorola.com>