Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go-fuse
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Levin Zimmermann
go-fuse
Commits
655a5066
Commit
655a5066
authored
Feb 21, 2011
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New go release: use StartProcess() rather than ForkExec().
parent
5d921aae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
fuse/mount.go
fuse/mount.go
+4
-4
No files found.
fuse/mount.go
View file @
655a5066
...
...
@@ -50,7 +50,7 @@ func mount(mountPoint string) (f *os.File, finalMountPoint string, err os.Error)
}
mountPoint
=
path
.
Clean
(
path
.
Join
(
cwd
,
mountPoint
))
}
p
id
,
err
:=
os
.
ForkExec
(
"/bin/fusermount"
,
p
roc
,
err
:=
os
.
StartProcess
(
"/bin/fusermount"
,
[]
string
{
"/bin/fusermount"
,
mountPoint
},
[]
string
{
"_FUSE_COMMFD=3"
},
""
,
...
...
@@ -58,7 +58,7 @@ func mount(mountPoint string) (f *os.File, finalMountPoint string, err os.Error)
if
err
!=
nil
{
return
}
w
,
err
:=
os
.
Wait
(
pid
,
0
)
w
,
err
:=
os
.
Wait
(
p
roc
.
P
id
,
0
)
if
err
!=
nil
{
return
}
...
...
@@ -74,7 +74,7 @@ func mount(mountPoint string) (f *os.File, finalMountPoint string, err os.Error)
func
unmount
(
mountPoint
string
)
(
err
os
.
Error
)
{
dir
,
_
:=
path
.
Split
(
mountPoint
)
p
id
,
err
:=
os
.
ForkExec
(
"/bin/fusermount"
,
p
roc
,
err
:=
os
.
StartProcess
(
"/bin/fusermount"
,
[]
string
{
"/bin/fusermount"
,
"-u"
,
mountPoint
},
nil
,
dir
,
...
...
@@ -82,7 +82,7 @@ func unmount(mountPoint string) (err os.Error) {
if
err
!=
nil
{
return
}
w
,
err
:=
os
.
Wait
(
pid
,
0
)
w
,
err
:=
os
.
Wait
(
p
roc
.
P
id
,
0
)
if
err
!=
nil
{
return
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment