Bug 5838 - handle external kill
Summary: handle external kill
Status: NEW
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Rick Moseley
URL:
Keywords:
Depends on:
Blocks: 5829 5837
  Show dependency treegraph
 
Reported: 2008-03-03 21:05 UTC by Andrew Cagney
Modified: 2008-03-03 21:05 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Cagney 2008-03-03 21:05:02 UTC
Consider:

  (fhpd) load /bin/ls
  (fhpd) start
  process [0.0] 1234 started, executable /bin/ls

then

  $ kill -9 1234

the response should be:

  (fhpd) Process [0.0] terminated
  (fhpd) focus
  [0.0] /bin/ls

i.e., when a process is terminated it automatically switches back to the
underlying executable; this is best implemented by the process groups having a
stack or something behind them, when the process disappears it pops that leaving
the executable underneath it

this would also simplify the current "kill" code which tries to synchronously
re-load the executable (instead the stacked executable from before the run would
be restored).