(dbx) where
fgets(??, ??, ??) at 0x9000000000434b8
ipm_syslog_write(??, ??, ??, ??), line 397 in
"ipm_mpi_syslog.c"
ipm_syslog(), line 302 in "ipm_mpi_syslog.c"
ipm_mpi_finalize(), line 9885 in "libipm.c"
MPI_Finalize(), line 3478 in "libipm.c"
blacs_exit_.blacs_exit() at 0x1000e5bc0
testzdriver() at 0x10000747c
(dbx)
Logged In: NO
I have protected the fgets checking if the file was opened.
in_fh = popen(cmd,"r");
if(in_fh) {
while(fgets(cmd,MAXSIZE_TXTLINE,in_fh)) {
fprintf(fh, "%s", cmd);
}
pclose(in_fh);
}
I deally the fgets would go away. For now it's needed to run
dump and file on the executable.
Using libelf & libmagic would be a way of doing this, but
that adds to the space of the code in IPM.
-David