Re: I want to report a bug in the program tryto from socklog package. When exactly the last run of the c
Gerrit Pape <[email protected]>
| Newsgroups | gmane.comp.misc.pape.general |
|---|---|
| Message-ID | <20060720084715.29360.qmail@4a5a2375f5ee7a.315fe32.mid.smarden.org> |
On Mon, Jul 17, 2006 at 11:21:49AM +0200, David Le?ka wrote: > I want to report a bug in the program tryto from socklog package. When > exactly the last run of the child program succeds, tryto reports that > child was not succeeded. > For example if somebody run command: > tryto -n 1 /bin/true > tryto reports the message: > tryto: fatal: child crashed, giving up. > It is nonsense, because /bin/true must always succeed. > When somebody use -n 2 switch and the first run of the child is > unsuccesfull but second run of the child is succesfull, the message > appears also. The same for the -n 3, -n 4, etc. I often use -n 1 switch > because I want a program to be run no more than once. I include a simple > patch correcting the problem. I noticed that author uses "rc" variable > to store both child exit code and return code of tryto but it is not > good in the case child returns some of the tryto reserved values (111 > and 100). I think using two variables "rc" and "child_rc" may improve > reliability of the program slightly. Hi David, thanks for the report. I can confirm the bug, and try to release a new version with a fix soon. Regards, Gerrit.