-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Description
Precheck
- Do not use the issues tracker for help or support (try Elixir Forum, Stack Overflow, IRC, etc.)
- For proposing a new feature, please start a discussion on the Elixir Core mailing list
- For bugs, do a quick search and make sure the bug has not yet been reported
- Finally, be nice and have fun!
Done.
Environment
- Elixir & Erlang versions (elixir --version):
elixir --version
Erlang/OTP 19 [erts-8.0] [source] [64-bit] [smp:48:48] [async-threads:10] [hipe] [kernel-poll:false]
Elixir 1.3.4
- Operating system:
Linux [...] 4.4.36-2.[...].el6.x86_64 If-statement in body causes warning message #1 SMP Mon Dec 12 12:45:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.7 (Santiago)
Current behavior
When I use my communication through an Erlang port in a escript or with mix run, it works. When I do a mix release with distillery (1.4), in the resulting application the communication over the pipe doesn't work anymore for no apparent reason. It simply hangs as soon when it writes to the pipe. The port application itself never receives anything over the pipe but starts up.
I wrote a sample application to replicate my problem: https://github.com/DerKastellan/release-weirdness
Expected behavior
Pipe communication to Erlang port should work whether in dev mode with mix or in released application.
I would appreciate any help with this. I'm at a loss why behavior changes when using distillery...