My real requirement is that: sendevent will consume more than 10 seconds, so, I wish Windows CMD don't wait so long, and Windows CMD can immediately return to user-input-status.
Currently I can bethink of calling close(), likely as belows: ------------------------------------------------------------- close(0); close(1); close(2); sleep(10); ------------------------------------------------------------- But fail, because Windows CMD still wait 10 second to return. Do you have any other way? Or, where is wrong about above implementation? Thansk. 2009/3/24 David Turner <[email protected]> > Why don't y ou try to redirect the output of adb shell to the NUL device > instead ? > > > On Tue, Mar 24, 2009 at 4:22 AM, <[email protected]> wrote: > >> >> As you know, when issue "adb shell sendevent", the printf of sendevent >> will write to "/dev/pts/1", and at that time, ADB server will read from >> "/dev/ptmx". >> Finally, the printf of sendevent will show at Windows CMD. >> >> But, I don't want any printf's info is shown at Windows CMD. How to do at >> sendevent? >> >> Currently, I have added following codes at sendevent: >> ------------------------------------------------------------- >> close(0); >> close(1); >> close(2); >> sleep(10); >> ------------------------------------------------------------- >> >> But, Windows CMD still wait 10 second, and then over "adb shell >> sendevent". >> >> Because sendevent will consume more than 10 seconds, I wish sendevent can >> close output device, and then ADB server immediately stop read, and then >> Windows CMD immediately finish "wait status", and Windows CMD can input any >> other commands by person. >> >> How to do that? >> >> Thanks. >> >> >> > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "android-framework" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-framework?hl=en -~----------~----~----~----~------~----~------~--~---
