summaryrefslogtreecommitdiff
path: root/lib/stdlib/test/shell_docs_SUITE_data/unknown_erlang_link_1_func.txt
blob: 6286448237b1a7a38d2645c3e04cb0aafe85c764 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

  -spec link(PidOrPort) -> true when PidOrPort :: pid() | port().

  Creates a link between the calling process and another process (or
  port) PidOrPort. If the link already exists or a process
  attempts to create a link to itself, nothing is done. Returns 
  true if the link is set up.

  If PidOrPort does not exist and checking it is cheap, a noproc
  error is raised. Currently, checking is cheap if the PidOrPort
  is local and the caller does not trap exits (see process_flag/2 
  ).

  Apart from any exit signals from the linked process itself, two
  special exit signals may be sent to the calling process:

   • noproc is sent immediately if PidOrPort does not exist at
     the time of linking (if the caller is trapping exits or 
     PidOrPort is remote).

   • noconnection if PidOrPort is remote and a connection
     between the nodes could not be established or was severed.

  See Processes ➜ Links in the Erlang Reference Manual for more
  details.