Fixed wd and new simple mem example.

2007-05-19  Benoît Dejean  <benoit@placenet.org>

	* Makefile.am:
	* mem.c: (main):
	* wd.c: (main):

	Fixed wd and new simple mem example.

svn path=/trunk/; revision=2593
This commit is contained in:
Benoît Dejean
2007-05-19 14:26:11 +00:00
committed by Benoît Dejean
parent 0e2fe6158c
commit b1acd4461e
4 changed files with 41 additions and 1 deletions

View File

@@ -13,6 +13,8 @@ int main(int argc, char **argv)
if (argc < 2 || !(pid = strtoul(argv[1], NULL, 0)))
pid = getpid();
glibtop_init();
dirs = glibtop_get_proc_wd(&buf, pid);
g_print("Process %u:\n"
@@ -26,6 +28,8 @@ int main(int argc, char **argv)
g_strfreev(dirs);
glibtop_close();
return 0;
}