On Wed, Jun 30, 2010 at 2:52 PM, Pierre Gaston <[email protected]>wrote:
> On Wed, Jun 30, 2010 at 9:12 AM, Clark J. Wang <[email protected]> wrote: > >> >> On Wed, Jun 30, 2010 at 1:40 PM, Jan Schampera <[email protected]> >> wrote: >> >> It just shows that $$ does what it should do, it reports the relevant PID >> of >> > the parent ("main") shell you use. >> >> >> Then what's the problem with my script in my original mail? Seems like >> Bash >> does not handle the signal in a real-time way. >> >> the signal is delivered after the foreground process "sleep 3600" exits, > try with: > "sleep 3600 & wait $!" instead > > This works fine. Thanks.
