* server.c (main): Print child status or termination signal from
variable 'signal', not 'sig'.
This commit is contained in:
parent
c3e735a6a3
commit
3a7fb99b71
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
|
||||
|
||||
* server.c (main): Print child status or termination signal from
|
||||
variable 'signal', not 'sig'.
|
||||
|
||||
2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
|
||||
|
||||
* linux-low.c (linux_read_memory): Change return type to
|
||||
|
|
|
@ -573,9 +573,10 @@ main (int argc, char *argv[])
|
|||
|
||||
if (status == 'W')
|
||||
fprintf (stderr,
|
||||
"\nChild exited with status %d\n", sig);
|
||||
"\nChild exited with status %d\n", signal);
|
||||
if (status == 'X')
|
||||
fprintf (stderr, "\nChild terminated with signal = 0x%x\n", sig);
|
||||
fprintf (stderr, "\nChild terminated with signal = 0x%x\n",
|
||||
signal);
|
||||
if (status == 'W' || status == 'X')
|
||||
{
|
||||
if (extended_protocol)
|
||||
|
|
Loading…
Reference in a new issue