Closed
Bug 477724
Opened 15 years ago
Closed 15 years ago
[unix patch] avoid pointless shell interpreter hanging around
Categories
(Firefox Build System :: General, defect)
Tracking
(blocking1.9.2 -, status1.9.2 .17-fixed, status1.9.1 wontfix)
RESOLVED
FIXED
mozilla1.9.3a1
People
(Reporter: walters, Assigned: karlt)
References
Details
Attachments
(1 file, 1 obsolete file)
3.18 KB,
patch
|
benjamin
:
review+
dveditz
:
approval1.9.2.17+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.6) Gecko/2009020410 Fedora/3.0.6-1.fc10 Firefox/3.0.6 Ubiquity/0.1.5 Build Identifier: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.6) Gecko/2009020410 Fedora/3.0.6-1.fc10 Firefox/3.0.6 Ubiquity/0.1.5 Right now the run-mozilla.sh script launcher in the normal case (i.e. launching Firefox from applications menu) does a bunch of work to check for debug flags, then runs the target process, and exits with its exit code. It's more efficient and generally all around better to just exec the child in this case. This way there's no pointless shell interpreter hanging around, and anyone scripting firefox launching can know that the pid they get back when they launch /usr/bin/firefox *is* firefox, not a shell script interpreter parent. Reproducible: Always Steps to Reproduce: 1. Launch firefox Actual Results: shell interpreter parent hanging around Expected Results: no shell interpreter
Reporter | ||
Comment 1•15 years ago
|
||
This patch is against the run-mozilla.sh in Fedora 10.
Updated•15 years ago
|
Assignee: nobody → mozbugz
Assignee | ||
Updated•15 years ago
|
Assignee: mozbugz → nobody
Status: UNCONFIRMED → ASSIGNED
Component: General → Build Config
Ever confirmed: true
Product: Firefox → Core
QA Contact: general → build-config
Assignee | ||
Updated•15 years ago
|
Assignee: nobody → mozbugz
Assignee | ||
Comment 2•15 years ago
|
||
run_mozilla.sh now no longer has DEBUG_CORE_FILES (bug 467638), so by using parameters to get rid of tmpfile there is now never any need to keep the shell(s) running.
Attachment #361414 -
Attachment is obsolete: true
Attachment #394923 -
Flags: review?
Assignee | ||
Comment 3•15 years ago
|
||
This patch also happens to work around NSS issues with passing arguments through perl on Fedora 11 (bug 497251 comment 51).
Assignee | ||
Updated•15 years ago
|
Attachment #394923 -
Flags: review? → review?(benjamin)
Comment 4•15 years ago
|
||
I like this patch very much, thanks!
Updated•15 years ago
|
Attachment #394923 -
Flags: review?(benjamin) → review+
Assignee | ||
Comment 5•15 years ago
|
||
Thanks, Colin, for the nudge; I'd kind of wanted to do this for some time. http://hg.mozilla.org/mozilla-central/rev/9ab3645be5aa
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3a1
Reporter | ||
Comment 6•15 years ago
|
||
Thanks for taking the patch and fixing it up into an apply-able state =)
Updated•13 years ago
|
status1.9.1:
--- → ?
status1.9.2:
--- → ?
Comment 8•13 years ago
|
||
The patch could remove more. exitcode=$? becomes dead code. This includes the exit $exitcode which appears after functions which do not return Also, to make sure, this will fix Thunderbird too? Thunderbird has two parents hanging around
Assignee | ||
Comment 9•13 years ago
|
||
(In reply to comment #8) > The patch could remove more. exitcode=$? becomes dead code. This includes the > exit $exitcode which appears after functions which do not return I didn't know that bash sometimes exits on error during exec. "If command cannot be executed for some reason, a non-interactive shell exits, unless the shell option execfail is enabled, in which case it returns failure." But the man pages for dash and zsh don't seem to be so clear.
Updated•13 years ago
|
Attachment #394923 -
Flags: approval1.9.2.16?
Comment 10•13 years ago
|
||
Comment on attachment 394923 [details] [diff] [review] always exec Approved for 1.9.2.16, a=dveditz for release-drivers Approval doesn't automatically result in landing. We're not blocking on this patch and if it doesn't make it by the non-blocking code-freeze (Thursday Mar 17) then approval will be removed.
Attachment #394923 -
Flags: approval1.9.2.16? → approval1.9.2.16+
Updated•13 years ago
|
Comment 11•13 years ago
|
||
Pushed in 1.9.2 branch: http://hg.mozilla.org/releases/mozilla-1.9.2/rev/782b1277e416
Updated•6 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•