Open GoogleCodeExporter opened 8 years ago
How are you setting the timeout?
Original comment by Stericso...@gmail.com
on 31 Jul 2013 at 3:11
Ahh :) Sorry, my bad. I thought the timeout argument towards the shell was for
commands. I see now that Commands have their own timeout.
That leaves us with:
a) after the timeout exception was called, the tcpdump process wasn't actually
terminated.
b) perhaps related: when calling closeCustomShell(), the shell isn't actually
closed when tcpdump/a process isn't running.
c) is there a way to do the equivalent of sending a sigint to the process? Had
the vague hope of sending a "\003" command, but that didn't work.
Right now the only way for me to close my running process is to call
killProcess, which isn't too elegant.
Original comment by cjst...@gmail.com
on 31 Jul 2013 at 3:59
So,
I need to see how I can force the process to kill when a timeout exception
occurs.
Also, how are you determining that the custom shell is not closing when the
process is not running, Are you calling the close method on the shell?
I don't think there is a way in Java to send a sigint to the process. However
there is the process.Destroy() method that should be called when the close
method is called on the shell.
Original comment by Stericso...@gmail.com
on 1 Aug 2013 at 3:16
Yea, I tried calling either the .close() method on the shell or the
closeCustomShell() function.
I don't know if the shell isn't closing when the process isn't running. I only
know the shell isn't closing when the process IS running. Don't know if you
meant the latter.
If you did mean the latter, I can see from the command-line that the Unix
process is still alive. See the shell output on TCPdump from above.
Original comment by cjst...@gmail.com
on 1 Aug 2013 at 3:33
Got you, you said:
"b) perhaps related: when calling closeCustomShell(), the shell isn't actually
closed when tcpdump/a process isn't running.'
Guess that should have been the process "is" running. Anyways, that is a result
of the fact that the process is still running. So solving the problem of the
process continuing to run would solve the issue of the shell staying open.
Let me look into this....
Original comment by Stericso...@gmail.com
on 1 Aug 2013 at 3:39
Ah, sorry for the confusion.
Original comment by cjst...@gmail.com
on 1 Aug 2013 at 3:50
Original issue reported on code.google.com by
cjst...@gmail.com
on 30 Jul 2013 at 2:49