]> git.saurik.com Git - apple/configd.git/blobdiff - configd.tproj/_notifyviasignal.c
configd-453.16.tar.gz
[apple/configd.git] / configd.tproj / _notifyviasignal.c
index 4021c400785d45622319f30f4a74496fd485420e..9d15ce935bf894b0394a48f5577725715a2792e8 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2000-2004, 2006, 2009 Apple Inc. All rights reserved.
+ * Copyright (c) 2000-2004, 2006, 2009, 2011 Apple Inc. All rights reserved.
  *
  * @APPLE_LICENSE_HEADER_START@
  * 
@@ -46,10 +46,6 @@ __SCDynamicStoreNotifySignal(SCDynamicStoreRef store, pid_t pid, int sig)
        CFStringRef                     sessionKey;
        CFDictionaryRef                 info;
 
-       if ((store == NULL) || (storePrivate->server == MACH_PORT_NULL)) {
-               return kSCStatusNoStoreSession; /* you must have an open session to play */
-       }
-
        if (storePrivate->notifyStatus != NotifierNotRegistered) {
                /* sorry, you can only have one notification registered at once */
                return kSCStatusNotifierActive;