git://git.onelab.eu
/
vsys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
7bc9992
)
(no commit message)
author
Sapan Bhatia
<sapanb@cs.princeton.edu>
Tue, 24 Mar 2009 15:21:35 +0000
(15:21 +0000)
committer
Sapan Bhatia
<sapanb@cs.princeton.edu>
Tue, 24 Mar 2009 15:21:35 +0000
(15:21 +0000)
unixsocketwatcher.ml
patch
|
blob
|
history
diff --git
a/unixsocketwatcher.ml
b/unixsocketwatcher.ml
index
f0e3f5a
..
517d7e0
100644
(file)
--- a/
unixsocketwatcher.ml
+++ b/
unixsocketwatcher.ml
@@
-36,7
+36,6
@@
let receive_event (listening_socket_spec:fname_and_fd) (_:fname_and_fd) =
match mapping with
|None -> logprint "Received unexpected socket event\n";()
|Some (execpath, slice_name) ->
match mapping with
|None -> logprint "Received unexpected socket event\n";()
|Some (execpath, slice_name) ->
- print "Execpath: %s\n" execpath;
begin
let child = fork () in
if (child == 0) then
begin
let child = fork () in
if (child == 0) then
@@
-44,7
+43,6
@@
let receive_event (listening_socket_spec:fname_and_fd) (_:fname_and_fd) =
(* Child *)
(* Close all fds except for the socket *)
let fd = Obj.magic data_socket in
(* Child *)
(* Close all fds except for the socket *)
let fd = Obj.magic data_socket in
- print "Fd: %d\n" fd;
let _ =
execv execpath [|execpath;slice_name;sprintf "%d" fd|] (*with
Unix_error(num,str1,str2)->logprint "Error %d: %s (%s)" (Obj.magic num) str1 str2;raise (Unix_error(num,str1,str2))*)
let _ =
execv execpath [|execpath;slice_name;sprintf "%d" fd|] (*with
Unix_error(num,str1,str2)->logprint "Error %d: %s (%s)" (Obj.magic num) str1 str2;raise (Unix_error(num,str1,str2))*)