Commit e0bc4a1a authored by Shane Snyder's avatar Shane Snyder

only throwout empty stdin,stdout,stderr stdio recs

parent a658ce00
......@@ -1228,7 +1228,14 @@ static void stdio_shutdown(
* logic above has likely broken the mapping to the static array.
* We walk it manually here instead.
*/
darshan_record_id stdin_rec_id = darshan_core_gen_record_id("<STDIN>");
darshan_record_id stdout_rec_id = darshan_core_gen_record_id("<STDOUT>");
darshan_record_id stderr_rec_id = darshan_core_gen_record_id("<STDERR>");
for(i=0; i<stdio_rec_count; i++)
{
if((stdio_rec_buf[i].base_rec.id == stdin_rec_id) ||
(stdio_rec_buf[i].base_rec.id == stdout_rec_id) ||
(stdio_rec_buf[i].base_rec.id == stderr_rec_id))
{
if(stdio_rec_buf[i].counters[STDIO_WRITES] == 0 &&
stdio_rec_buf[i].counters[STDIO_READS] == 0)
......@@ -1242,6 +1249,7 @@ static void stdio_shutdown(
stdio_rec_count--;
}
}
}
/* update output buffer size to account for shared file reduction */
*stdio_buf_sz = stdio_rec_count * sizeof(struct darshan_stdio_file);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment