Infinite loop when trying to connect to PSM process

VERIFIED WONTFIX

Status

--
trivial
VERIFIED WONTFIX
18 years ago
2 years ago

People

(Reporter: echo.choi, Assigned: javi)

Tracking

1.0 Branch
x86
Linux

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

18 years ago
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.)

Comment 1

18 years ago
Reassigning.
Assignee: ddrinan → javi
Status: UNCONFIRMED → NEW
Ever confirmed: true

Comment 2

18 years ago
Reporter, is this still a problem now that PSM 2.0 is integrated into the 
nightly builds?
(Assignee)

Comment 3

18 years ago
PSM 2 has landed and no longer uses an out of process daemon.  Marking this as a
WONTFIX
Status: NEW → RESOLVED
Last Resolved: 18 years ago
Resolution: --- → WONTFIX

Comment 4

18 years ago
Verified.
Status: RESOLVED → VERIFIED

Updated

14 years ago
Component: Security: UI → Security: UI
Product: PSM → Core

Updated

11 years ago
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.