ps: add catastrophic_failure()
The catastrophic_failure function tries to make bug reporting useful by telling in which line error occured, and drops core. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
@ -84,7 +84,7 @@ static int proc_was_listed(proc_t *buf){
|
||||
while(sn){
|
||||
switch(sn->typecode){
|
||||
default:
|
||||
printf(_("Internal error in ps! Please report this bug.\n"));
|
||||
catastrophic_failure(__FILE__, __LINE__, _("please report this bug"));
|
||||
|
||||
#define return_if_match(foo,bar) \
|
||||
i=sn->n; while(i--) \
|
||||
|
Reference in New Issue
Block a user