diff options
author | Kostis Sagonas <[email protected]> | 2010-03-05 09:05:52 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2010-03-07 13:26:34 +0100 |
commit | da70b2b0eca09f572e3275240ba60f1da6b679c4 (patch) | |
tree | 234ff94e9f9e0bd6c85c4e6f51cf2acd644903bd /lib/kernel/src/standard_error.erl | |
parent | 02112d8dba5b40cd0adb7ecb2b2ed4340594369f (diff) | |
download | otp-da70b2b0eca09f572e3275240ba60f1da6b679c4.tar.gz otp-da70b2b0eca09f572e3275240ba60f1da6b679c4.tar.bz2 otp-da70b2b0eca09f572e3275240ba60f1da6b679c4.zip |
kernel: Add types and specs
Diffstat (limited to 'lib/kernel/src/standard_error.erl')
-rw-r--r-- | lib/kernel/src/standard_error.erl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/kernel/src/standard_error.erl b/lib/kernel/src/standard_error.erl index 73901d9896..039b5c4884 100644 --- a/lib/kernel/src/standard_error.erl +++ b/lib/kernel/src/standard_error.erl @@ -33,13 +33,19 @@ %% %% The basic server and start-up. %% +-spec start_link() -> 'ignore' | {'error',term()} | {'ok',pid()}. + start_link() -> supervisor_bridge:start_link({local, ?PROCNAME_SUP}, ?MODULE, []). +-spec terminate(term(), pid()) -> 'ok'. + terminate(_Reason,Pid) -> (catch exit(Pid,kill)), ok. +-spec init([]) -> {'error','no_stderror'} | {'ok',pid(),pid()}. + init([]) -> case (catch start_port([out,binary])) of Pid when is_pid(Pid) -> |