Browse thread
[Caml-list] How to use both select and waitpid ?
- Berke Durak
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Berke Durak <berke@a...> |
| Subject: | [Caml-list] How to use both select and waitpid ? |
Ok it's not absolutely Caml-specific, but here's my problem. I'm doing a sort of network server that forks some children and processes their output. So I need to do asynchronous I/O on sockets (which implies use of Unix.select) but I also need to waitpid for children. How do I do this ? I was hoping that select would return with EINTR on receipt of SIGCHLD, but this isn't the case (even if I've unblocked the signal and set its handler to something). Could some Unix guru explain me this ? Thanks a lot. -- Berke ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr