Here is the relevant part of the strace:

write(1, "(check-version", 14)          = 14
write(1, "\10\10\10\10\10\10\10\10\10\10\10\10\10\10(check-version)",
29) = 29
select(1, [0], [], NULL, NULL)          = 1 (in [0])
fcntl(0, F_GETFL)                       = 0x8002 (flags O_RDWR|O_LARGEFILE)
fcntl(0, F_SETFL, O_RDWR|O_NONBLOCK|O_LARGEFILE) = 0
read(0, "\r", 8192)                     = 1
fcntl(0, F_SETFL, O_RDWR|O_LARGEFILE)   = 0
write(1,
"\10\10\10\10\10\10\10\10\10\10\10\10\10\10\10(check-version)\10", 31) = 31
write(1, "\n", 1)                       = 1
open("/dev/ttyACM0", O_RDWR|O_CREAT, 0666) = 3
fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS,
{B9600 -opost -isig -icanon -echo ...}) = 0
write(3, "ver\n", 4)                    = 4
read(3, "ver\n", 8192)                  = 4
read(3, 0x9f0148, 8192)                 = ? ERESTARTSYS (To be restarted
if SA_RESTART is set)
--- SIGINT {si_signo=SIGINT, si_code=SI_KERNEL} ---
rt_sigreturn()                          = -1 EINTR (Interrupted system call)

The lines...

write(3, "ver\n", 4)                    = 4
read(3, "ver\n", 8192)                  = 4

..are where I have prinl'd "ver" to the dev file and got it echoed back.

I do not know what...

read(3, 0x9f0148, 8192)                 = ? ERESTARTSYS (To be restarted
if SA_RESTART is set)

..means, but it must be significant.

The SIGINT is from me pressing Ctrl-C after the program seems to have hung.

On 04/23/2017 05:39 AM, Alexander Burger wrote:
> On Sat, Apr 22, 2017 at 04:46:35PM -0800, Christopher Howard wrote:
>>       (in Dev
>>          (line) # ADDED LINE
>>          (setq Output (line)) )
>>       (close Dev) )
>>    Output )
>>
>> ..a call to (check-version) will hang, as though waiting for more
>> output, instead of giving me the second line (the result data).
> 
> Yes, strange that the second call to (line) hangs. Perhaps you could 'strace'
> the picolisp process to see what exactly is received?
> 
> ♪♫ Alex
> 

-- 
https://qlfiles.net

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to