]> AND Public Git Repository - simgrid.git/blobdiff - examples/lua/masterslave/slave.lua
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix CMakeLists.txt
[simgrid.git] / examples / lua / masterslave / slave.lua
index a2b5439967e5e6c7b35dd92720e64bb7c917a997..d6f214122c223472f3a432df1dc04e53efafa199 100644 (file)
@@ -1,3 +1,9 @@
+-- Copyright (c) 2011-2012, 2014. The SimGrid Team.
+-- All rights reserved.
+
+-- This program is free software; you can redistribute it and/or modify it
+-- under the terms of the license (GNU LGPL) which comes with this package.
+
 function Slave(...)
 
   if #arg ~= 1 then
@@ -15,11 +21,11 @@ function Slave(...)
       simgrid.info("Got finalize message")
       break
     end
-    simgrid.info("Received task '" .. task_name .. "' on mailbox '" .. my_mailbox)
+    simgrid.info("Received task '" .. task_name .. "' on mailbox '" .. my_mailbox .. "'")
     task:execute()
     simgrid.info("Task '" .. task_name .. "' is done")
   end
 
   simgrid.info("I'm done. See you!")
-end -- Slave
+end -- end_of_slave