|
|
| Author |
Message |
|
| anders_n |
Posted: Tue Apr 22, 2008 9:05 pm |
|
|
|
User
Joined: 28 Feb 2005
Posts: 155
Location: Saltillo, Mexico
|
There seems to be a problem using yaws:start_embedded when erlang
is started using a boot script.
The boot script loads all applications in the release. This leads to a failure
to load yaws in yaws:start_embedded/4.
The enclosed patch seems to solve the problem.
/Anders
--- lib/yaws/src/yaws.erl (revision 700)
+++ lib/yaws/src/yaws.erl (revision 701)
@@ -54,7 +54,11 @@
start_embedded(DocRoot, SL, GL) when list(DocRoot),list(SL),list(GL) ->
start_embedded(DocRoot, SL, GL, "default").
start_embedded(DocRoot, SL, GL, Id) when list(DocRoot),list(SL),list(GL) ->
- ok = application:load(yaws),
+ case application:load(yaws) of
+ ok -> ok;
+ {error, {already_loaded,yaws}} -> ok;
+ _ -> exit("Can not load yaws")
+ end,
ok = application:set_env(yaws, embedded, true),
ok = application:set_env(yaws, id, Id),
application:start(yaws),
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Tue Apr 22, 2008 10:55 pm |
|
|
|
Guest
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|