mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-10-04 07:58:33 +00:00
support for unbit syscall 357 and uidsec_struct
This commit is contained in:
@@ -584,6 +584,10 @@ int main(int argc, char *argv[], char *envp[]) {
|
||||
struct rlimit rl ;
|
||||
#endif
|
||||
|
||||
#ifdef UNBIT
|
||||
struct uidsec_struct us;
|
||||
#endif
|
||||
|
||||
int socket_type;
|
||||
socklen_t socket_type_len;
|
||||
|
||||
@@ -1671,6 +1675,15 @@ clean:
|
||||
goodbye_cruel_world();
|
||||
}
|
||||
|
||||
#ifdef UNBIT
|
||||
if (syscall(357,&us,0) > 0) {
|
||||
if (us.memory_errors > 0) {
|
||||
fprintf(stderr,"Unbit Kernel found a memory allocation error for process %d.\n", mypid);
|
||||
goodbye_cruel_world();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
if (manage_next_request == 0) {
|
||||
|
||||
Reference in New Issue
Block a user