1
%% ``The contents of this file are subject to the Erlang Public License,
2
%% Version 1.1, (the "License"); you may not use this file except in
3
%% compliance with the License. You should have received a copy of the
4
%% Erlang Public License along with this software. If not, it can be
5
%% retrieved via the world wide web at http://www.erlang.org/.
7
%% Software distributed under the License is distributed on an "AS IS"
8
%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
9
%% the License for the specific language governing rights and limitations
12
%% The Initial Developer of the Original Code is Ericsson Utvecklings AB.
13
%% Portions created by Ericsson are Copyright 1999, Ericsson Utvecklings
14
%% AB. All Rights Reserved.''
16
%% $Id: mnesia_sp.erl,v 1.1 2008/12/17 09:53:39 mikpe Exp $
19
%% To able to generate nice crash reports we need a catch on the highest level.
20
%% This code can't be purged so a code change is not possible.
21
%% And hence this a simple module.
25
-export([init_proc/4]).
27
init_proc(Who, Mod, Fun, Args) ->
28
mnesia_lib:verbose("~p starting: ~p~n", [Who, self()]),
29
case catch apply(Mod, Fun, Args) of
31
mnesia_monitor:terminate_proc(Who, Reason, Args),