Browse Source

Use erlang:halt/0 for c_src.mk

* erlang:halt/0 is much faster than init:stop/0 to terminate
  execution (no wait time)
Kenji Rikitake 10 years ago
parent
commit
73df95eee6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/c_src.mk

+ 1 - 1
plugins/c_src.mk

@@ -43,7 +43,7 @@ $(C_SRC_ENV):
 	erl -noshell -noinput -eval "file:write_file(\"$(C_SRC_ENV)\", \
 		io_lib:format(\"ERTS_INCLUDE_DIR ?= ~s/erts-~s/include/\", \
 			[code:root_dir(), erlang:system_info(version)])), \
-		init:stop()."
+		erlang:halt()."
 
 -include $(C_SRC_ENV)