You are not logged in.
Pages: 1
Hello.
After spending hours of work thinking my C code was with some kind of problem I realized it was a bug with XFCE4 terminal.
I am using Arch Linux with XFCE 4.10.
I have a C code compiled and I can call it from within the terminal by using:
./a.out
or by calling xfce-terminal:
xfce4-terminal -H -e "./a.out"
The result should, obviously, be the same. However, the second one doesn't show all the text info as the first one does, after some point it freezes.
To reproduce the error, my C code was:
void main()
{
FILE* f = fopen("tmp.txt", "r");
char c;
while((c = fgetc(f)) != EOF )
putchar(c);
}
The tmp.txt file is any file, preferably test with one with more than 1000 lines and more than 60kb, this will do. In my opinion it has something to do with the H argument, that's the hold one. Perhaps it's failing to recognize when the process finishes.
Last edited by eduardoarnoldh (2014-03-29 23:28:32)
Offline
While posting it here will tell other users what is happening to have it fixed file a bug report at https://bugzilla.xfce.org/
Offline
Pages: 1
[ Generated in 0.006 seconds, 7 queries executed - Memory usage: 522.24 KiB (Peak: 531.52 KiB) ]