aboutsummaryrefslogtreecommitdiffstats
path: root/lib
AgeCommit message (Collapse)Author
2012-03-05Leave control back to gen_server during supervisor's restart loopSiri Hansen
When an attempt to restart a child failed, supervisor would earlier keep the execution flow and try to restart the child over and over again until it either succeeded or the restart frequency limit was reached. If none of these happened, supervisor would hang forever in this loop. This commit adds a timer of 0 ms where the control is left back to the gen_server which implements the supervisor. This way any incoming request to the supervisor will be handled - which could help breaking the infinite loop - e.g. shutdown request for the supervisor or for the problematic child. This introduces some incompatibilities in stdlib due to new return values from supervisor: * restart_child/2 can now return {error,restarting} * delete_child/2 can now return {error,restarting} * which_children/1 returns a list of {Id,Child,Type,Mods}, where Child, in addition to the old pid() or 'undefined', now also can be 'restarting'.
2012-03-01Merge branch 'mh/create_cookie_error_msg' into maintGustav Simonsson
* mh/create_cookie_error_msg: Specify file name and error on create_cookie failure OTP-9954
2012-02-29Merge branch 'alind/asn1/parallel-tests' into maintAdam Lindberg
* alind/asn1/parallel-tests: [asn1] Refactor test cases and remove extra suites [asn1] Replace 'driver' option with 'nif' [asn1] Correct test suite dependencies [asn1] Parallelize test suites [asn1] Make tables and processes unnamed [asn1] Abstract out table access to new module [asn1] Run asn1 compilation in a separate process
2012-02-29[asn1] Refactor test cases and remove extra suitesAdam Lindberg
2012-02-28Make hipe hipe-compiled w/ --enable-native-libsPatrik Nyblom
2012-02-28[asn1] Replace 'driver' option with 'nif'Adam Lindberg
2012-02-28[asn1] Correct test suite dependenciesAdam Lindberg
2012-02-28[asn1] Parallelize test suitesAdam Lindberg
2012-02-28[asn1] Make tables and processes unnamedAdam Lindberg
- Refactor and clean up asn1_db process - Remove unused stop function in asn1ct.erl - Remove infinite loop possibilites in asn1ct_check.erl - test/1,2,3 now run in separate process - Update documentation for new test options
2012-02-28[asn1] Abstract out table access to new moduleAdam Lindberg
All table access is now performed in a separate module. This will allow changes to how ETS is handled by changing only this module. Note that the module exports a very ETS-like interface for now which would have to be maintained even if the data format would change (to a hash map for example).
2012-02-28[asn1] Run asn1 compilation in a separate processAdam Lindberg
2012-02-28Merge branch 'dgud/observer/perf-mon/OTP-9891' into maintDan Gudmundsson
2012-02-28Merge branch 'dgud/mnesia/fix-qlc-warning' into maintDan Gudmundsson
* dgud/mnesia/fix-qlc-warning: [mnesia] Fix warning in example code
2012-02-28Merge branch 'dgud/wx/misc-improvements/OTP-9947' into maintDan Gudmundsson
* dgud/wx/misc-improvements/OTP-9947: [wx] Add simple taskbaricon test [wx] Add missing stc function [wx] Add wxTaskBarIcon class [wx] Doc overloaded functions [wx] Fix spec errors [wx] Fix api bugs in wxDC [wx] Fix wxGraphicContext bugs [wx] Remove redundant erts version check [wx] Generated types for all wx classes [wx] Generate GL api from latest version [wx] Cleanup Makefiles
2012-02-28Merge branch 'ia/ssh/currently-supported-doc/OTP-8109' into maintIngela Anderton Andin
* ia/ssh/currently-supported-doc/OTP-8109: Document currently supported algorithms
2012-02-28Merge branch 'ia/ssh/error-handling' into maintIngela Anderton Andin
* ia/ssh/error-handling: Prevent client hanging. (OTP-8111) Added checks of API input Improve check so that we will not try to read ssh packet length indicator if not sure we have enough data. Improved error handling
2012-02-28Prevent client hanging. (OTP-8111)Ingela Anderton Andin
Restored supervisor tree so that error propagation will work as intended, although connection processes are set to temporary, instead of permanent with restart times set to 0, and termination of the connection subtree is initiated by a temporary process spawned by ssh_connection_managers terminate. This is done to avoid unwanted supervisor reports. Pherhaps we need some new supervisor functionality.
2012-02-27[wx] Add simple taskbaricon testDan Gudmundsson
2012-02-24Merge branch 'uw/extending_gen' into maintGustav Simonsson
* uw/extending_gen: Add plugin support for alternative name lookup OTP-9945
2012-02-24[wx] Add missing stc functionDan Gudmundsson
wxSTC:SetEdgeMode was missing for some reason.
2012-02-24[wx] Add wxTaskBarIcon classDan Gudmundsson
2012-02-24[wx] Doc overloaded functionsDan Gudmundsson
edoc do not handle overloaded type-specs, so doc them manually
2012-02-23Merge branch 'sverk/ets-compress-bug' into maintSverker Eriksson
* sverk/ets-compress-bug: erts: Fail binary_to_term if bignum arity is too large erts: Fix bignum-bug in ETS with compressed option OTP-9932
2012-02-22Merge branch 'tst/no_hipe_ceach' into maintGustav Simonsson
* tst/no_hipe_ceach: Remove hipe_ceach from hipe.app.src to fix reltool-generated release startup OTP-9939
2012-02-22[wx] Fix spec errorsDan Gudmundsson
2012-02-21Merge branch 'ks/compile_info-fix' into maintGustav Simonsson
* ks/compile_info-fix: compiler: Fix discrepancy in compile_info OTP-9917
2012-02-21[observer] Windows double buffer fixesDan Gudmundsson
DC's and GC's is not double buffered by default on windows, and there is a separate erase event which causes awful flickering when constant updating a window. Hack around wx (to be able to use wxBufferPaintDC), to avoid flickering on windows. This works on windows because there (and only there) wxGC:create/1 also takes a memoryDC as argument.
2012-02-21[observer] Add fallback drawing to raster api (wxDC)Dan Gudmundsson
Sigh, seems that Suse-11 does not default deliver wxWidgets with wxGRAPHICS_CONTEXT enabled, add fallback to use wxDC again.
2012-02-21[observer] Use wxGC for drawingDan Gudmundsson
2012-02-21[observer] Mac workaroundDan Gudmundsson
2012-02-21[observer] Fix crash when loosing connectionsDan Gudmundsson
2012-02-21[observer] Move data collector to run_time toolsDan Gudmundsson
2012-02-21[observer] Use new scheduler_wall_time measurmentDan Gudmundsson
2012-02-21[observer] Add performance monitorDan Gudmundsson
2012-02-21[observer] Started with system monitorDan Gudmundsson
2012-02-21erts: Fix bignum-bug in ETS with compressed optionSverker Eriksson
A large 64-bit immediate number will be stored as SMALL_BIG_EXT by ETS compressed format. When uncompressing, the SMALL_BIG_EXT was first decoded as as bignum (by bytes_to_big) and then turned into a small (by big_norm). This works for normal "binary_to_term" as decoded_size() over-estimates the needed heap size. But for ETS no over-estimation is done as the real term size is known and stored in DbTerm. Fixed by preventing bytes_to_big() from writing bignum digit when the number is seen to fit in an immediate.
2012-02-21Added checks of API inputIngela Anderton Andin
2012-02-20Improve check so that we will not try to read ssh packet length indicator if ↵Ingela Anderton Andin
not sure we have enough data. OTP-8380
2012-02-20Fix discrepancy in compile_infoKostis Sagonas
The BEAM disassembler used the atom 'none' to signify the absence of a compile_info chunk in a .beam file. This clashes with the type declaration of the compile_info field of a #beam_file{} record as containing a list. Use [] to signify the absence of this chunk. This simplifies the code and avoids a dialyzer warning. For fixing a similar problem and for consistency, changed also the return type of the attributes field of the #beam_file{} record. This required a change in the beam_disasm test suite.
2012-02-20[wx] Fix api bugs in wxDCDan Gudmundsson
Some out arguments was in args.
2012-02-17Document currently supported algorithmsIngela Anderton Andin
2012-02-17Improved error handlingIngela Anderton Andin
2012-02-17[wx] Fix wxGraphicContext bugsDan Gudmundsson
* Lines had wrong arguments * Change float() to number in guards, when packing arguments integers are converted floats to automaticly anyway.
2012-02-16[wx] Remove redundant erts version checkDan Gudmundsson
2012-02-16[wx] Generated types for all wx classesDan Gudmundsson
2012-02-16[wx] Generate GL api from latest versionDan Gudmundsson
- Remove edoc types in gl - Add OpenGL documentation
2012-02-16Merge branch 'bjorn/compiler/inline-and-on_load/OTP-9910' into maintBjörn Gustavsson
* bjorn/compiler/inline-and-on_load/OTP-9910: compiler: Teach the inliner to preserve on_load functions
2012-02-16Merge branch 'gustav/asn1-integer/sequence-fix/OTP-9688' into maintGustav Simonsson
2012-02-16Merge branch 'ahs/fix-gb_trees-doc' into maintHenrik Nord
* ahs/fix-gb_trees-doc: Put gb_trees documentation into alphabetical order OTP-9929
2012-02-16Merge branch 'vd/jinterface-atom-message' into maintHenrik Nord
* vd/jinterface-atom-message: Improve error message when creating a too long OtpErlangAtom OTP-9928