Closed Bug 65258 Opened 24 years ago Closed 23 years ago

Infinite loop when trying to connect to PSM process

Categories

(Core Graveyard :: Security: UI, defect)

1.0 Branch
x86
Linux
defect
Not set
trivial

Tracking

(Not tracked)

VERIFIED WONTFIX

People

(Reporter: echo.choi, Assigned: javi)

Details

In file cmtinit.c#260, the code looks like this:
237 #elif defined(XP_UNIX) || defined(XP_BEOS)
238     i = 0;
239     while (i<1000) {
240         i += sleep(10);
241     control = CMT_ControlConnect(mutex, sockFuncs);
242     if (control != NULL) {
243       break;
244     }
245     }
According to sleep() man page, it returns "Zero  if  the requested time has
elapsed, or the number of seconds left to sleep."

This code looks infinite to me if the CMT_ControlConnect() fails always (say, IF
the PSM process die at initialization for some reason.)
Reassigning.
Assignee: ddrinan → javi
Status: UNCONFIRMED → NEW
Ever confirmed: true
Reporter, is this still a problem now that PSM 2.0 is integrated into the 
nightly builds?
PSM 2 has landed and no longer uses an out of process daemon.  Marking this as a
WONTFIX
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → WONTFIX
Verified.
Status: RESOLVED → VERIFIED
Product: PSM → Core
Version: psm1.3 → 1.0 Branch
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.