git://git.onelab.eu
/
vsys.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(no commit message)
[vsys.git]
/
unixsocketwatcher.ml
diff --git
a/unixsocketwatcher.ml
b/unixsocketwatcher.ml
index
f997156
..
01cc0b6
100644
(file)
--- a/
unixsocketwatcher.ml
+++ b/
unixsocketwatcher.ml
@@
-56,9
+56,14
@@
let receive_event (listening_socket_spec:fname_and_fd) (_:fname_and_fd) =
match entry_info with
| Some(execpath,slice_name,fd) ->
begin
match entry_info with
| Some(execpath,slice_name,fd) ->
begin
-
-
-
+ let child = fork () in
+ if (child == 0) then
+ begin
+ (*Child*)
+ (* Close all fds except for the socket *)
+ execv execpath,[execpath];
+ logprint "Could not execve %s" execpath
+ end
end
| None -> ()
end
end
| None -> ()
end