- let res = Directfifowatcher.mkentry fqp abspath realperm slice_name in
- match res with
- | Success ->
- Directfifowatcher.openentry root_dir fqp (abspath,slice_name)
- | _ -> ()
+ if (this#is_fd_passer rel) then
+ let res = Unixsocketwatcher.mkentry fqp abspath realperm slice_name in
+ begin
+ match res with
+ | Success ->
+ Unixsocketwatcher.openentry root_dir fqp (abspath, slice_name)
+ | _ ->
+ logprint "Could not create entry %s" abspath
+ end
+ else
+ let res = Directfifowatcher.mkentry fqp abspath realperm slice_name in
+ begin
+ match res with
+ | Success ->
+ Directfifowatcher.openentry root_dir fqp (abspath,slice_name)
+ | _ ->
+ logprint "Could not create entry %s" abspath
+ end
+
+
+