[Xapian-devel] Problems with /bin/cat and flintlock?
Samuel Williams
space.ship.traveller at gmail.com
Fri May 27 15:04:32 BST 2011
In my synthetic test, I got the following behavior when attached to /bin/cat:
# strace -p 2091
Process 2091 attached - interrupt to quit
read(0, 0x89e7000, 32768) = ? ERESTARTSYS (To be restarted)
--- SIGHUP (Hangup) @ 0 (0) ---
read(0, "", 32768) = 0
close(0) = 0
close(1) = 0
close(2) = -1 EBADF (Bad file descriptor)
exit_group(0) = ?
Process 2091 detached
This seems like the desired behavior.
However, in the case where the WritableDatabase hung, I got the following behavior:
# strace -p 25694
Process 25694 attached - interrupt to quit
read(0, 0x859b000, 32768) = ? ERESTARTSYS (To be restarted)
--- SIGHUP (Hangup) @ 0 (0) ---
read(0,
^C <unfinished ...>
Process 25694 detached
Well, I'm not sure why there is a difference. Both processes were ignoring SIGHUP according to /proc/$pid/status
I'll keep on investigating.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20110528/7434b551/attachment.htm>
More information about the Xapian-devel
mailing list