From: Jay Freeman (saurik) Date: Thu, 24 Dec 2009 20:26:16 +0000 (+0000) Subject: Fix the attack of the zombie php-cgi processes. X-Git-Tag: v0.9.4000~43 X-Git-Url: https://git.saurik.com/cydget.git/commitdiff_plain/d975fb45fd56303bc0630ed0f30426227271c79e?ds=sidebyside Fix the attack of the zombie php-cgi processes. --- diff --git a/LockScreen.mm b/LockScreen.mm index ebe1631..3b11d39 100644 --- a/LockScreen.mm +++ b/LockScreen.mm @@ -101,6 +101,16 @@ _disused static unsigned trace_; } \ while (false) +#define _syscall(expr) \ + do if ((long) (expr) != -1) \ + break; \ + else switch (errno) { \ + case EINTR: \ + continue; \ + default: \ + _assert(false); \ + } while (true) + @protocol CydgetController - (NSDictionary *) currentConfiguration; @end @@ -1066,6 +1076,9 @@ MSHook(bool, _ZN7WebCore16MIMETypeRegistry29isSupportedJavaScriptMIMETypeERKNS_6 fail: CFRelease(http); + + int status; + _syscall(waitpid(pid, &status, 0)); } - (void) stopLoading { diff --git a/control b/control index bc539d2..570b80a 100644 --- a/control +++ b/control @@ -3,7 +3,7 @@ Priority: optional Section: Development Maintainer: Jay Freeman (saurik) Architecture: iphoneos-arm -Version: 0.9.3100-1 +Version: 0.9.3101-1 Description: framework for managing lock screen plugins Name: Cydget Depends: mobilesubstrate (>= 0.9.2587-1), firmware (>= 2.2), preferenceloader, apr-lib, pcre, cycript (>= 0.9.292-1)