Browse files

CA-38105: The recent patch to the recv_fd function causes it to retur…

…n an fd of -1 rather than segfault, so catch that and log what was actually received on the socket

Signed-off-by: Jon Ludlam <>
  • Loading branch information...
1 parent eabcb1d commit c8921f3fafa3d3a85d66080bf03e9b2dc71751e5 @jonludlam jonludlam committed Mar 8, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 forking_executioner/
@@ -18,6 +18,10 @@ open Fe_debug
let handle_fd_sock fd_sock state =
let (newfd,buffer) = Fecomms.receive_named_fd fd_sock in
+ if Unixext.int_of_file_descr newfd = -1 then begin
+ debug "Failed to receive an fd associated with the message '%s'" buffer;
+ failwith "Didn't get an fd"
+ end;
let dest_fd = List.assoc buffer state.id_to_fd_map in
let fd = begin
match dest_fd with

0 comments on commit c8921f3

Please sign in to comment.