Skip to content

Commit

Permalink
Merge pull request #135 from djs55/remove-named-pipe
Browse files Browse the repository at this point in the history
Remove broken named pipe support
  • Loading branch information
djs55 authored Jun 14, 2018
2 parents 7ef32cc + 0076852 commit 2d1c4db
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 10 deletions.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## v0.12.1 (2018-06-14)

* Remove (broken) support for named pipes.
* Remove unnecessary dependency on `cmdliner` in the core library.

## v0.12.0 (2017-11-05)

* Remove unnecessary dependency on `ppx_deriving`
Expand Down
2 changes: 1 addition & 1 deletion lib_test/jbuild
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
(executables
((names (lofs_test tests))
(libraries (result cstruct alcotest lwt cstruct-lwt logs.fmt astring
named-pipe.lwt mirage-flow-lwt mirage-kv-lwt mirage-channel-lwt
mirage-flow-lwt mirage-kv-lwt mirage-channel-lwt
protocol-9p protocol-9p-unix))
))
(alias
Expand Down
2 changes: 0 additions & 2 deletions protocol-9p-unix.opam
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ depends: [
"mirage-channel-lwt"
"lwt" {>= "3.0.0"}
"base-unix"
"cmdliner"
"astring"
"named-pipe" {>= "0.4.0"}
"fmt"
"logs" {>= "0.5.0"}
"win-error"
Expand Down
2 changes: 0 additions & 2 deletions protocol-9p.opam
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ depends: [
"mirage-kv-lwt"
"mirage-channel-lwt"
"lwt" {>= "3.0.0"}
"cmdliner"
"astring"
"named-pipe" {>= "0.4.0"}
"fmt"
"logs" {>= "0.5.0"}
"win-error"
Expand Down
4 changes: 0 additions & 4 deletions unix/client9p_unix.ml
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,6 @@ module Make(Log: S.LOG) = struct
end
| "unix", _ ->
open_unix address
| _, address when Astring.String.is_prefix ~affix:"\\\\" address ->
Named_pipe_lwt.Client.openpipe address
>>= fun pipe ->
Lwt.return (Ok (Named_pipe_lwt.Client.to_fd pipe))
| _ ->
Lwt.return (Error.error_msg "Unknown protocol %s" proto)
) >>*= fun s ->
Expand Down
2 changes: 1 addition & 1 deletion unix/jbuild
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
(library
((name protocol_9p_unix)
(public_name protocol-9p-unix)
(libraries (result fmt lwt mirage-flow-lwt cstruct cstruct-lwt astring named-pipe.lwt
(libraries (result fmt lwt mirage-flow-lwt cstruct cstruct-lwt astring
protocol-9p io-page.unix prometheus))
))

0 comments on commit 2d1c4db

Please sign in to comment.