Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.