From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: signal mask bug?
Date: Wed, 15 Feb 2017 20:10:44 -0800 [thread overview]
Message-ID: <170215201044.ZM15764@torch.brasslantern.com> (raw)
In-Reply-To: <20170215221757.GA24355@lorien.comfychair.org>
On Feb 15, 2:17pm, Danek Duvall wrote:
}
} % jobs
} [1] + running sleep 30 |
} unknown signal (core dumped) cat
}
} Of course, nothing actually dumped core, suggesting it's just a reporting
} problem.
Hm. This indicates that WCOREDUMP() is returning true for whatever the
job status of the cat process is.
However, presumably the status of that job should have been set to
SP_RUNNING at the same time it was for "sleep".
Which it is -- makerunning() assigns SP_RUNNING to pn->status of "cat"
during "bg".
But then when we reach prinjob() from the "jobs" command, pn->status of
that job has changed from -1 to 65535.
This happens at signals.c:525 in wait_for_processes(), when the status
returned from wait3(&status) [line 457] is assigned to it.
I suspect the status returned from wait3 is invalid in this case, but
I'm not sure. What would a status of 65535 mean? Or should it be
masked in some way that it isn't?
next prev parent reply other threads:[~2017-02-16 4:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-15 22:17 Danek Duvall
2017-02-16 4:10 ` Bart Schaefer [this message]
2017-02-16 9:48 ` Peter Stephenson
2017-02-16 20:18 ` Danek Duvall
2017-02-23 21:39 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=170215201044.ZM15764@torch.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).