summaryrefslogtreecommitdiff
path: root/lib/stdlib/test/shell_docs_SUITE_data/unknown_erlang_group_leader_2_func.txt
blob: e5268acd80a9a5ecf4c730e5e5b6b92a1944fa3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

  -spec group_leader(GroupLeader, Pid) -> true
                        when GroupLeader :: pid(), Pid :: pid().

  Sets the group leader of Pid to GroupLeader. Typically, this
  is used when a process started from a certain shell is to have
  another group leader than init.

  The group leader should be rarely changed in applications with a
  supervision tree, because OTP assumes the group leader of their
  processes is their application master.

  Setting the group leader follows the signal ordering guarantees
  described in the Processes Chapter in the Erlang Reference
  Manual.

  See also group_leader/0 and OTP design principles related to
  starting and stopping applications.