A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
put the list of all existing categories in a more visible location in the doc
[simgrid.git]
/
src
/
gras
/
Virtu
/
sg_dns.c
diff --git
a/src/gras/Virtu/sg_dns.c
b/src/gras/Virtu/sg_dns.c
index 1d67ee49aea5a600833d21f95f2004f82ba4aa53..0f7cfa927f27b012278d78219f28495f819aa174 100644
(file)
--- a/
src/gras/Virtu/sg_dns.c
+++ b/
src/gras/Virtu/sg_dns.c
@@
-11,5
+11,9
@@
#include "gras/Virtu/virtu_sg.h"
const char *gras_os_myname(void) {
+ m_process_t process = MSG_process_self();
+ if ((process != NULL) && (process->simdata))
return MSG_host_get_name(MSG_host_self());
+ else
+ return "";
}