1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

always taking an interest in ppid wont hurt

Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
Andy Green 2012-10-17 20:10:44 +08:00
parent 7b6106214b
commit 5e8967a54e

View file

@ -3032,7 +3032,7 @@ libwebsockets_fork_service_loop(struct libwebsocket_context *context)
while (1) {
if (libwebsocket_service(context, 1000))
break;
#ifndef HAVE_SYS_PRCTL_H
//#ifndef HAVE_SYS_PRCTL_H
/*
* on systems without prctl() (i.e. anything but linux) we can notice that our
* parent is dead if getppid() returns 1. FIXME apparently this is not true for
@ -3041,7 +3041,7 @@ libwebsockets_fork_service_loop(struct libwebsocket_context *context)
if (getppid() == 1)
break;
#endif
//#endif
}