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:
committed by
Benoît Dejean
parent
0e2fe6158c
commit
b1acd4461e
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user