On Sun, Jun 24, 2012 at 09:02:17PM +0200, Christian Kellermann wrote:
> * Aaron Patterson <[email protected]> [120623 03:28]:
> > Hi everyone!
> >
> > I'm trying to open a tty from chicken (so that I can read data from my
> > meat curing box).  The stty egg seems to be the one I want, but whenever
> > I try to create a new port, chicken just blocks.
> >
> > Here is my program:
> >
> >   (open-input-file "/dev/tty.uart-AEFF467AF9D70234")
> >
> 
> Does it work when you compile the program?

Yes, even if I compile the program, the compiled program hangs.  I tried
tracing syscalls, but it doesn't seem to help.

I rewrote the program as this (so the program will attempt to open
itself):

    (open-input-file "test.scm")
    (open-input-file "/dev/tty.uart-AEFF467AF9D70234")

Compiled like this:

    $ csc -O0 -static test.scm

And trapped all the system calls:

    $ sudo dtruss ./test 2> out.log

Here is the log file I produced:

    https://gist.github.com/2986727

It seems the compiled binary can open the `test.scm` file, but I don't
see an open syscall for the tty.  What else can I do to debug this?

Thanks.

-- 
Aaron Patterson
http://tenderlovemaking.com/

Attachment: pgpI4ZT5kym8H.pgp
Description: PGP signature

_______________________________________________
Chicken-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to