cc: [email protected]
Subject: Re: [ast-developers] ksh crash: suspend command
--------

> Hi,
> 
> one our user found that using 'suspend' command crashes ksh 
> with sigsegv. It's because shp in sh/jobs.c:job_kill( ) is NULL.
> Last working version was 2010-06-21.
> Reproducer: ksh -c suspend
> 
> Michal

Thanks, here is a patch for this which will be in the next update:

===============cut here============================
--- old/sh/jobs.c       Wed Mar 16 09:54:14 2011
+++ new/sh/jobs.c       Tue Mar 29 10:42:06 2011
@@ -926,6 +926,7 @@
                        if(!(pw = job_bypid(pid)))
                        {
                                pw = &dummy;
+                               pw->p_shp = sh_getinterp();
                                pw->p_pid = pid;
                                pw->p_pgrp = pid;
                        }
===============cut here============================

David Korn
[email protected]
_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers

Reply via email to