mirror of https://github.com/ericonr/sndio.git
panic (and show fill trace) if we try to delete a NULL aproc
This commit is contained in:
parent
1247c187a7
commit
2775f46e12
|
@ -173,6 +173,12 @@ aproc_del(struct aproc *p)
|
||||||
{
|
{
|
||||||
struct abuf *i;
|
struct abuf *i;
|
||||||
|
|
||||||
|
#ifdef DEBUG
|
||||||
|
if (!p) {
|
||||||
|
dbg_puts("aproc_del: called with NULL argument\n");
|
||||||
|
dbg_panic();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
if (!(p->flags & APROC_ZOMB)) {
|
if (!(p->flags & APROC_ZOMB)) {
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
if (debug_level >= 3) {
|
if (debug_level >= 3) {
|
||||||
|
|
Loading…
Reference in New Issue