When I try to destroy the (short running) process in ICS the System logs the below exception. I'm very puzzled as the code runs fine on Honeycomb. Anybody else seeing this?
I/System ( 2369): Failed to destroy process 2412 I/System ( 2369): libcore.io.ErrnoException: kill failed: ESRCH (No such process) I/System ( 2369): at libcore.io.Posix.kill(Native Method) I/System ( 2369): at libcore.io.ForwardingOs.kill(ForwardingOs.java:77) I/System ( 2369): at java.lang.ProcessManager$ProcessImpl.destroy(ProcessManager.java:257) Here's what the code looks like: Process process = null; try { process = new ProcessBuilder().command("/system/bin/somecommand") .redirectErrorStream(true).start(); ... } catch (IOException e) { // handle exception } finally { if (process != null) { process.destroy(); } } Thanks! Elliot -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en