]> granicus.if.org Git - strace/commit
Make ERESTARTxyz messages more descriptive
authorDenys Vlasenko <dvlasenk@redhat.com>
Thu, 12 Jan 2012 10:26:34 +0000 (11:26 +0100)
committerDenys Vlasenko <dvlasenk@redhat.com>
Thu, 12 Jan 2012 10:26:34 +0000 (11:26 +0100)
commitfe585656f8d0c6ac7298df22fce0d9ee0935e264
tree85c3fa93ea2beed9d98e0286b491c8895e421deb
parent3cc943825e3aa0d3f2681be33164412113cab5ab
Make ERESTARTxyz messages more descriptive

There is widespread confusion about exact meaning
of ERESTARTxyz codes. Before this change, we were showing
all four of them the same: as "(To be restarted)".

This change prints better explanations for these codes,
and contains verbose comments which explain *why* we display
codes that way - or else someone confused
is bound to come later and mangle them again.
New messages are:

ERESTARTSYS (To be restarted if SA_RESTART is set)
ERESTARTNOINTR (To be restarted)
ERESTARTNOHAND (Interrupted by signal)
ERESTART_RESTARTBLOCK (Interrupted by signal)

* syscall.c (trace_syscall_exiting): Make ERESTARTxyz messages
more descriptive.

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
syscall.c