diff options
-rw-r--r-- | tools/android/adb_reboot/adb_reboot.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/android/adb_reboot/adb_reboot.c b/tools/android/adb_reboot/adb_reboot.c index a581d21..05e6221 100644 --- a/tools/android/adb_reboot/adb_reboot.c +++ b/tools/android/adb_reboot/adb_reboot.c @@ -15,6 +15,10 @@ int main(int argc, char ** argv) { if (i > 0) return 0; + int j; + for (j = 0; j < getdtablesize(); j++) + close(j); + /* child (daemon) continues */ setsid(); /* obtain a new process group */ |