2
0
mirror of https://github.com/koreader/koreader synced 2024-11-16 06:12:56 +00:00

Actually, no that's wrong, it's not the parent process, it's a fork.

This commit is contained in:
NiLuJe 2012-10-03 01:23:34 +02:00 committed by Qingping Hou
parent 2572dd0657
commit 9f5cd9d021

View File

@ -190,7 +190,7 @@ static int closeInputDevices(lua_State *L) {
} }
if(slider_pid != -1) { if(slider_pid != -1) {
/* kill and wait for child process */ /* kill and wait for child process */
kill(slider_pid, SIGTERM); // We could kill -slider_pid (note the minus) to kill the whole process group, but we trap SIGTERM to handle things nicely kill(slider_pid, SIGTERM);
waitpid(-1, NULL, 0); waitpid(-1, NULL, 0);
} }
return 0; return 0;