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:
parent
7b6106214b
commit
5e8967a54e
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue