<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html style="">
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Valery Reznic wrote:
<blockquote cite="mid:10608.13201.qm@web110306.mail.gq1.yahoo.com"
 type="cite">
  <blockquote type="cite">
    <pre wrap="">The second point is that I don't need advice about how
it can be done. I can think of three or four ways not
mentioned here at all. They have disadvantages in relation
to what I implemented, mostly in how long it takes to figure
out that the daemon has, indeed, finished, and in how much
protocol specific changes they would require. I am asking
for opinion about that one specific way I chose, which works
beautifully, but is extremely non-standard.

    </pre>
  </blockquote>
  <pre wrap=""><!---->OK, you said itself - it's work. The only problem a can think of is that it will be impossible to use gdb/strace on your already ptrace'd agent.

Valery.


  </pre>
</blockquote>
Hi Shahar,<br>
<br>
About disadvantages of ptrace&nbsp; (IMHO):<br>
1. controlling process should take care of signal processing (signals
are delivered to the caller ??)<br>
&nbsp;&nbsp;&nbsp; or just resent them to the tracee.&nbsp; I am not sure signal delivery
is reliable<br>
2. You introduce new daemon wasting&nbsp; the&nbsp; tiny RAM you have.<br>
<br>
<br>
And if you please can you comment why atexit combined with execve() <br>
&nbsp; or SIGSEGV/SIGTERM/, handler calling the execve() cannot be more
simple solution&nbsp; for you case ?<br>
<br>
Regards,<br>
Lev. <br>
<blockquote cite="mid:10608.13201.qm@web110306.mail.gq1.yahoo.com"
 type="cite">
  <pre wrap="">
      

_______________________________________________
Linux-il mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Linux-il@cs.huji.ac.il">Linux-il@cs.huji.ac.il</a>
<a class="moz-txt-link-freetext" href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il">http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il</a>

  </pre>
</blockquote>
<br>
</body>
</html>