Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
037afca5
Commit
037afca5
authored
Feb 28, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Unlink remaining children inodes when deleting the parent.
parent
a4e8f4dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
change.c
server/change.c
+8
-1
No files found.
server/change.c
View file @
037afca5
...
...
@@ -438,6 +438,7 @@ static void inode_set_name( struct inode *inode, const char *name )
static
void
free_inode
(
struct
inode
*
inode
)
{
int
subtree
=
0
,
watches
=
0
;
struct
inode
*
tmp
,
*
next
;
struct
dir
*
dir
;
LIST_FOR_EACH_ENTRY
(
dir
,
&
inode
->
dirs
,
struct
dir
,
in_entry
)
...
...
@@ -448,7 +449,6 @@ static void free_inode( struct inode *inode )
if
(
!
subtree
&&
!
inode
->
parent
)
{
struct
inode
*
tmp
,
*
next
;
LIST_FOR_EACH_ENTRY_SAFE
(
tmp
,
next
,
&
inode
->
children
,
struct
inode
,
ch_entry
)
{
...
...
@@ -464,6 +464,13 @@ static void free_inode( struct inode *inode )
if
(
inode
->
parent
)
list_remove
(
&
inode
->
ch_entry
);
/* disconnect remaining children from the parent */
LIST_FOR_EACH_ENTRY_SAFE
(
tmp
,
next
,
&
inode
->
children
,
struct
inode
,
ch_entry
)
{
list_remove
(
&
tmp
->
ch_entry
);
tmp
->
parent
=
NULL
;
}
if
(
inode
->
wd
!=
-
1
)
{
inotify_remove_watch
(
get_unix_fd
(
inotify_fd
),
inode
->
wd
);
...
...
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