Index: uspace/srv/loader/main.c
===================================================================
--- uspace/srv/loader/main.c	(revision bfd1546e49e40fb980d45ced0b409578ba8ab3ef)
+++ uspace/srv/loader/main.c	(revision 5d9d9a957b7eaab3847725aecf1eb136cea17876)
@@ -271,4 +271,7 @@
 static void loader_run(ipc_callid_t rid, ipc_call_t *request)
 {
+	/* Set the task name. */
+	task_set_name(pathname);
+
 	if (is_dyn_linked == true) {
 		/* Dynamically linked program */
