From: Philippe Strauss <philou@philou.ch>
To: caml-list@inria.fr
Subject: a syntax error that I don't get
Date: Thu, 18 Nov 2010 15:59:07 +0100 [thread overview]
Message-ID: <4CE53F3B.7080200@philou.ch> (raw)
Hello caml'ers
This one is short, I'm writting a signal handler:
205: let sig_exit () =
206: Unix.kill !chpid Sys.sigterm ;
207: match (Unix.waitpid [] !chpid) with
208: | pid, Unix.WSIGNALED (Sys.sigterm) -> log `LOG_NOTICE "child
terminated by parent"
209: | pid, pstat -> log `LOG_ERR "child asked to terminate by
parent, but unexpected process status received"
and compilation chokes on:
philou@air:~/mysrc/deconvolution/jackond$ make
ocamlfind opt -thread -package
unix,threads,netsys,netstring,netplex,rpc,equeue,jack,str,syslog -c
patcher.ml -o patcher.cmx
File "patcher.ml", line 208, characters 28-35:
Error: Syntax error
make: *** [patcher.cmx] Error 2
replacing Sys.sigterm by -11 or signumber, it compiles fine.
I don't get it.
It's using ocaml 3.12 of godi, on osx 10.6.5, x86_64
next reply other threads:[~2010-11-18 14:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-18 14:59 Philippe Strauss [this message]
2010-11-19 7:00 ` [Caml-list] " bluestorm
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CE53F3B.7080200@philou.ch \
--to=philou@philou.ch \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox