-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
I'm running into an issue where the port process isn't exiting after Elixir terminates. Unless I kill the offending process, my computer will crash if I unplug the usb connection.
I'm using the Sparkfun WRL-08687.
$ ps aux | grep serial
rockwood 5061 0.0 0.0 2445080 788 s004 S+ 3:18PM 0:00.00 grep serialI can then run the following:
{:ok, serial} = Serial.start_link
Serial.open(serial, "/dev/tty.usbserial-AM01VFAJ")
Serial.set_speed(serial, 9600)
Serial.connect(serial)
Serial.send_data(serial, "+++")
Serial.close(serial)
Serial.disconnect(serial)And the process remains after elixir has exited.
$ ps aux | grep serial
rockwood 5110 0.0 0.0 2434840 752 s004 S+ 3:21PM 0:00.00 grep serial
rockwood 5098 0.0 0.0 2434824 632 ?? Ss 3:21PM 0:00.00 /Users/rockwood/devel/exbee/_build/dev/lib/serial/priv/serial -erlang
I've tried modifying serial.ex to manually Port.close(port) on exit, but the process still remains.
Any ideas?
Metadata
Metadata
Assignees
Labels
No labels