~ubuntu-branches/debian/squeeze/erlang/squeeze

« back to all changes in this revision

Viewing changes to lib/tools/test/cover_SUITE_data/b.erl

  • Committer: Bazaar Package Importer
  • Author(s): Sergei Golovan
  • Date: 2010-03-09 17:34:57 UTC
  • mfrom: (10.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20100309173457-4yd6hlcb2osfhx31
Tags: 1:13.b.4-dfsg-3
Manpages in section 1 are needed even if only arch-dependent packages are
built. So, re-enabled them.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
-module(b).
 
2
-export([start/0, loop/0]).
 
3
 
 
4
start() ->
 
5
    spawn(?MODULE, loop, []).
 
6
 
 
7
loop() ->
 
8
    receive
 
9
        {ping, Ping} ->
 
10
            a:pong(Ping),
 
11
            loop();
 
12
        stop ->
 
13
            done
 
14
    end.