Changeset 4476
- Timestamp:
- 02/03/07 01:19:00 (2 years ago)
- Files:
-
- WiredServer/trunk/WCStatusController.m (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
WiredServer/trunk/WCStatusController.m
r3950 r4476 27 27 */ 28 28 29 #import "WCDashboardController.h" 29 30 #import "WCSettings.h" 30 31 #import "WCStatusController.h" … … 124 125 - (void)_updatePid { 125 126 NSString *pid; 127 NSString *command; 126 128 BOOL running; 127 129 … … 131 133 running = NO; 132 134 } else { 133 if(kill([pid intValue], 0) == 0 || errno == EPERM) { 135 command = [[NSWorkspace sharedWorkspace] commandForProcessIdentifier:[pid unsignedIntValue]]; 136 137 if([command isEqualToString:@"wired"]) { 134 138 running = YES; 135 139 } else { 136 [[ NSFileManager defaultManager] removeFileAtPath:WCExpandWiredPath(@"wired.pid") handler:NULL];140 [[WCDashboardController dashboardController] removeFileAtPath:WCExpandWiredPath(@"wired.pid")]; 137 141 138 142 running = NO;
