[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: memory leaks
From: |
Eli Zaretskii |
Subject: |
Re: memory leaks |
Date: |
Tue, 10 Nov 2020 17:16:12 +0200 |
> From: Madhu <enometh@meer.net>
> Date: Tue, 10 Nov 2020 06:54:56 +0530
> Cc: 43395@debbugs.gnu.org
>
> #+BEGIN_SRC
> $ cat > f.c
> #include <stdio.h>
> int
> main()
> {
> char c = ' ';
> while (c != 'q' && c != 'Q')
> {
> fprintf(stdout, "Press q then enter to quit: ");
> c = fgetc(stdin);
> }
> return 0;
> }
> ^D
>
> $ gcc f.c
> $ emacs -Q
> #+END_SRC
>
> M-x shell-command ./a.out
>
> Then the process hangs. But Emacs' memory grows unbounded.
Short answer: you use a command that cannot handle this case. For the
details, please refer to the bug tracker.