Closed
Bug 1558095
Opened 5 years ago
Closed 5 years ago
Updater calls waitpid that does not make sense
Categories
(Toolkit :: Application Update, defect, P3)
Toolkit
Application Update
Tracking
()
RESOLVED
FIXED
mozilla69
Tracking | Status | |
---|---|---|
firefox69 | --- | fixed |
People
(Reporter: emk, Assigned: emk)
References
()
Details
Attachments
(1 file)
This waitpid
will always fail because waitpid
can only wait for children.
Comment 1•5 years ago
|
||
Wow... that's from the original implementation... nice catch!
https://dxr.mozilla.org/mozilla1.8/source/toolkit/mozapps/update/src/updater/updater.cpp#1171
Priority: -- → P3
Assignee | ||
Comment 2•5 years ago
|
||
Some random thoughts on the way forward:
- Just remove the unworking
waitpid
. On Windows, we have to wait for exiting updater because the operating system will lock running executable files. It does not apply to other platforms. - Replace
waitpid
with pollinggetppid
. - Pass a pipe fd instead of a pid and reading the pipe until EOF.
- Replace
waitpid
with something specific to platforms (e.g.PR_SET_PDEATHSIG
on Linux).
Comment 3•5 years ago
|
||
I think 1 is sufficient since it has been this way forever unless there is some issue someone can think of that this would fix on Linux and Mac.
Assignee | ||
Comment 4•5 years ago
|
||
Pushed by VYV03354@nifty.ne.jp: https://hg.mozilla.org/integration/autoland/rev/e74c6c4c5d62 Remove useless waitpid from updater. r=rstrong
Comment 6•5 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 5 years ago
status-firefox69:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla69
Updated•5 years ago
|
Assignee: nobody → VYV03354
You need to log in
before you can comment on or make changes to this bug.
Description
•