# Strange behaviour of REPL with EOT signal

**URL:** https://discourse.julialang.org/t/strange-behaviour-of-repl-with-eot-signal/40483
**Category:** General Usage
**Created:** [May 30, 2020, 8:46pm UTC](https://discourse.julialang.org/t/strange-behaviour-of-repl-with-eot-signal/40483 "2020-05-30T20:46:23Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![lhp22](https://avatars.discourse-cdn.com/v4/letter/l/838e76/32.png) [@lhp22](https://discourse.julialang.org/u/lhp22)
#### Post date: [May 30, 2020, 8:46pm UTC](https://discourse.julialang.org/t/strange-behaviour-of-repl-with-eot-signal/40483/1 "2020-05-30T20:46:24Z")

</div>

Hi there !

Here a minimal code :

```julia
function test()
    i = 1 
    while true
        println("Input expected (n°$i)")
        readline(stdin)
        i+=1
    end 
end

main() = test()

```

Then I run `main()` in the `julia>` prompt (launched with `julia -i test.jl`). And now I run `Ctrl+D`. And from now, no readline makes waiting the infinite loop :

```julia
$> julia -i infinite.jl
              _
  _ _ _(_)_ | Documentation: https://docs.julialang.org
 (_) | (_) (_) |
  _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
 | | | | | | |/ _` | |
 | | |_| | | | (_| | | Version 1.4.2 (2020-05-23)
_/ |\ __'_|_|_|\__'_| |  
|__/ |

julia> main()
Input expected (n°1)
Input expected (n°2)
Input expected (n°3)
Input expected (n°4)
Input expected (n°5)
Input expected (n°6)
Input expected (n°7)
Input expected (n°8)
Input expected (n°9)
Input expected (n°10)

```

Why ? I expected one of these behaviours :

- Stopping of julia REPL
- Stopping of ONE of the readline

What happens ?
