diff options
| author | Tim Watson <tim@rabbitmq.com> | 2012-12-05 12:08:09 +0000 |
|---|---|---|
| committer | Tim Watson <tim@rabbitmq.com> | 2012-12-05 12:08:09 +0000 |
| commit | b7c99598c9abdeaf46b15461796ac5f8abd9c9e4 (patch) | |
| tree | 5355de17f4a2a0707d5c8777569ba1ed45c90d2b /src | |
| parent | 66272487d4e137c63189e54c82783b802583cf0f (diff) | |
| download | rabbitmq-server-git-b7c99598c9abdeaf46b15461796ac5f8abd9c9e4.tar.gz | |
oops - remember to guard specs for R12B03 compatibility
Diffstat (limited to 'src')
| -rw-r--r-- | src/supervisor2.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/supervisor2.erl b/src/supervisor2.erl index e7e1367277..36d0073257 100644 --- a/src/supervisor2.erl +++ b/src/supervisor2.erl @@ -443,9 +443,10 @@ do_start_child_i(M, F, A) -> %%% Callback functions. %%% %%% --------------------------------------------------- +-ifdef(use_specs). -type call() :: 'which_children' | 'count_children' | {_, _}. % XXX: refine -spec handle_call(call(), term(), state()) -> {'reply', term(), state()}. - +-endif. handle_call({start_child, EArgs}, _From, State) when ?is_simple(State) -> Child = hd(State#state.children), #child{mfargs = {M, F, A}} = Child, |
