[systemd] reboot optimization when usb is connected
authorbaik <knhoon.baik@samsung.com>
Fri, 28 Dec 2012 07:12:11 +0000 (16:12 +0900)
committerbaik <knhoon.baik@samsung.com>
Fri, 28 Dec 2012 07:12:11 +0000 (16:12 +0900)
commit358c6e04878e56de0b629aa4718e589eec378aa6
tree05a64ae74d47381271030a5049df8ab7c4c6edb4
parent3a78aff1ef27fd1e02b4176a1b5b3f7aa777fcfc
[systemd] reboot optimization when usb is connected

when usb is connected, system-server launch usb-server.
usb-server has some strange codes below.

 70         while(1) {
 71                 ret = usb_server_main(argc, argv);
 72                 if (ret == 0) break;
 73         }

So, although usb-server got SIGTERM, they will not be termed.

Almost reboot was happened without usb.
So, send SIGKILL as making timeout when user is connecnted.

Change-Id: Id51d8cd167637433849db73deac35fe38e4cb662
packaging/system-server.service