Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jfacorro/start-phase-weirdness
Weird stuff happening when a start phase returns an error
https://github.com/jfacorro/start-phase-weirdness
Last synced: 20 days ago
JSON representation
Weird stuff happening when a start phase returns an error
- Host: GitHub
- URL: https://github.com/jfacorro/start-phase-weirdness
- Owner: jfacorro
- Created: 2015-10-02T21:29:43.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-02T21:39:03.000Z (over 9 years ago)
- Last Synced: 2024-11-18T09:41:21.876Z (3 months ago)
- Language: Erlang
- Size: 168 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Building
```
$ make
```# Weirdness
Start an Erlang shell:
```
$ make shell
```Evaluate the following expressions:
```
application:ensure_all_started(weird).%% fails because the start_phase returns
%% {error,{weird,{badarg,{weird,start_phase,
%% [start_some_stuff,normal,[]]}}}}application:ensure_all_started(weird).
%% fails because the supervisor is still alive
%% {error,{weird,{{already_started,<0.45.0>},
%% {weird,start,[normal,[]]}}}}
```Shouldn't the supervisor be killed. It seems that it is never actually linked to the process.